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

unable to catch "Invalid JSON RPC Response" exception #4569

Closed
1 task done
sirpy opened this issue Nov 23, 2021 · 2 comments
Closed
1 task done

unable to catch "Invalid JSON RPC Response" exception #4569

sirpy opened this issue Nov 23, 2021 · 2 comments
Labels
Bug Addressing a bug Needs Clarification Requires additional input

Comments

@sirpy
Copy link

sirpy commented Nov 23, 2021

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When web3 client throws this exception it is not catchable either via the event emitter .on('error') or via wrapping the call/send with try/catch

Expected Behavior

All exceptions should be catchable so you could retry or handle it gracefully

Steps to Reproduce

any call/send that results in this exception

Web3.js Version

1.5.3

Environment

  • Operating System: any
  • Browser: any
  • Node.js Version: any
  • NPM Version: any

Anything Else?

No response

@sirpy sirpy added the Bug Addressing a bug label Nov 23, 2021
@nazarhussain
Copy link
Contributor

Hi @sirpy Thanks for reaching out to us. Unfortunately it didn't provide enough details to debug the issue. Please share a reproducible code snippet related to the issue. We will look further as we get your response.

@nazarhussain nazarhussain added the Needs Clarification Requires additional input label Nov 25, 2021
@nazarhussain
Copy link
Contributor

Hi @sirpy as we didn't heard back from you with more details to understand the issue. I have to close this one. If you can collect more information feel free to re-open the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Addressing a bug Needs Clarification Requires additional input
Projects
None yet
Development

No branches or pull requests

2 participants