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

Uncaught JsonRpcProvider exceptions in v5 #1240

Closed
mrwillis opened this issue Jan 13, 2021 · 2 comments
Closed

Uncaught JsonRpcProvider exceptions in v5 #1240

mrwillis opened this issue Jan 13, 2021 · 2 comments
Labels
duplicate Duplicate of another issue.

Comments

@mrwillis
Copy link

Not sure if this is something on our end or not but since upgrading to v5, if there is some provider error, it seems to not bubble up in the local function but instead throws an uncaught exception which I can't quite track down. For example:

image

and

base-provider.ts:2 Uncaught (in promise) Error: missing response (requestBody="{\"method\":\"eth_blockNumber\",\"params\":[],\"id\":127,\"jsonrpc\":\"2.0\"}", requestMethod="POST", serverError={}, url="https://rpc-mumbai.matic.today", code=SERVER_ERROR, version=web/5.0.11)
    at Logger.makeError (index.ts:205)
    at Logger.throwError (index.ts:217)
    at index.ts:234
    at Generator.throw (<anonymous>)
    at rejected (index.ts:2)

Still trying to gather more info. Perhaps I need to do await provider.ready?

Thanks

@ricmoo
Copy link
Member

ricmoo commented Jan 13, 2021

Please see #1208. I got a fix in for this last night and am just doing some final testing and reviews. :)

@ricmoo ricmoo added the duplicate Duplicate of another issue. label Jan 13, 2021
@mrwillis
Copy link
Author

didn't see that. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Duplicate of another issue.
Projects
None yet
Development

No branches or pull requests

2 participants