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

fix: TopicMessageQuery#unsubscribe() attempts to re-subscribe #2222

Open
bguiz opened this issue Mar 26, 2024 · 0 comments
Open

fix: TopicMessageQuery#unsubscribe() attempts to re-subscribe #2222

bguiz opened this issue Mar 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@bguiz
Copy link
Contributor

bguiz commented Mar 26, 2024

Description

  const subscription = new TopicMessageQuery()
    .setTopicId(topicId)
    .subscribe(client, myCallback);
  subscription.unsubscribe();

throws an error:

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

Steps to reproduce

  1. Set up this project: https://github.com/hedera-dev/hcs-skills/
  2. Run this script: https://github.com/hedera-dev/hcs-skills/blob/completed/scripts/checkpoint-subscribe.js

Additional context

Hedera network

testnet

Version

2.42.0

Operating system

macOS

@bguiz bguiz added the bug Something isn't working label Mar 26, 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

1 participant