-
Notifications
You must be signed in to change notification settings - Fork 5k
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
web3.shh.clearSubscriptions throws TypeError and fails #1466
Labels
Bug
Addressing a bug
Comments
dhl
changed the title
web3.shh.clearSubscriptions throws TypeError and fails
Mar 17, 2018
web3.shh.clearSubscriptions
throws TypeError and fails
I worked around this issue by setting the subscription instance to an object parameter and then I have access to the unsubscribe method.
then called it
|
I submitted a pull request with for the
|
This was referenced Sep 23, 2018
1 task
This will be fixed within the next release. (PR #2000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Calling
web3.shh.clearSubscriptions
to clear subscriptions fail with a TypeError, with or without any active subscriptions.System information
web3.js version:
1.0.0-beta.31
Browser Version: Chrome 64.0.3282.186
Commit hash : 956cdc5
Expected behaviour
web3.shh.clearSubscriptions
would execute with no error with or without an active subscription.Actual behaviour
web3.shh.clearSubscriptions
fails with a TypeError whether or not an active subscription exists.Steps to reproduce the behaviour
A gist was prepared to demonstrate the two failure cases.
See https://gist.github.com/dhl/b463ce9a6bd09e87fe74c992d7958d53
Backtrace
The text was updated successfully, but these errors were encountered: