Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when subscribing to topic - Cancelled on Client #2024

Open
ed-marquez opened this issue Nov 9, 2023 · 4 comments
Open

Error when subscribing to topic - Cancelled on Client #2024

ed-marquez opened this issue Nov 9, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@ed-marquez
Copy link
Contributor

Description

Description

An application developer from the ecosystem reported the following error when subscribing to a topic:

Error subscribing to topic 0.0.5860199 during attempt 0. Waiting 250 ms before next attempt: 1 CANCELLED: Cancelled on client
Error: Cancelled on client

In addition, HSuite has provided some feedback regarding that error in connection to frequent environment updates impacting their testing and release plans:

image

Steps to reproduce

To be provided by user

Additional context

No response

Hedera network

testnet

Version

TBC

Operating system

None

@tomachianura
Copy link

Hello guys, some more infos and context here:
we use a progressive caching mechanism, where we first check if there is any new message in the topic by fetching the latest consensus message, and only if we find new messages then we connect to the GRPC and fetch all the newest ones, then we close the connection.
from our side we're always keeping the connection as short as possible, and constantly cleaning up resources
we're running with "@hashgraph/sdk": "^2.37.0", latest one

  "engines": {
    "node": "20.x"
  }

if this might help

@tomachianura
Copy link

i've also noticed you guys are using some dependencies which are affected by critital security issues
like this one on crypto-js
CleanShot 2023-11-10 at 11 16 40

you're also using "@grpc/grpc-js": "1.8.2" which has been reported has very buggy version.

CleanShot 2023-11-10 at 11 17 13

feels like @hashgraph/sdk needs some urgent maintenance guys

@drgorb
Copy link

drgorb commented Nov 12, 2023

@tomachianura I just checked the crypto-js issue and it appears to be limited to the use of key derivation without parameters. Every use of PBKDF2 in the SDK is done with SHA-256, SHA-384 or SHA-512 with 260K iterations.

@SimiHunjan SimiHunjan added this to the 2.39.0 milestone Nov 20, 2023
@Petyo-Lukanov Petyo-Lukanov modified the milestones: 2.39.0, 2.40.0 Dec 7, 2023
@SimiHunjan SimiHunjan modified the milestones: 2.40.0, 2.41.0 Dec 14, 2023
@SimiHunjan SimiHunjan modified the milestones: 2.41.0, 2.42.0 Feb 5, 2024
@svetoslav-nikol0v
Copy link
Contributor

svetoslav-nikol0v commented Feb 6, 2024

Hey tomachianura and ed-marquez,
Since the issue was raised we updated the crypto-js package to the latest stable version 4.2.0. The SDK has a new stable version (2.41.0). Can you please check if the problem still exists? If yes, can you provide us steps to reproduce it, please?

@Petyo-Lukanov Petyo-Lukanov modified the milestones: 2.42.0, 2.43.0 Mar 5, 2024
@svetoslav-nikol0v svetoslav-nikol0v removed this from the 2.43.0 milestone Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants