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

Handle incorrect RPC response on getTransactionReceipt #70

Closed
lok52 opened this issue Sep 26, 2022 · 0 comments · Fixed by #112
Closed

Handle incorrect RPC response on getTransactionReceipt #70

lok52 opened this issue Sep 26, 2022 · 0 comments · Fixed by #112
Labels
bug Something isn't working

Comments

@lok52
Copy link
Collaborator

lok52 commented Sep 26, 2022

When sent worker tries to fetch a tx by hash, in some cases it gets an error:

Error: Returned error: Internal error
at Object.ErrorResponse (/app/node_modules/web3-core-helpers/lib/errors.js:28:19)
at /app/node_modules/web3-core-requestmanager/lib/index.js:300:36
at XMLHttpRequest.request.onreadystatechange (/app/node_modules/web3-providers-http/lib/index.js:98:13)
at XMLHttpRequestEventTarget.dispatchEvent (/app/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
at XMLHttpRequest._setReadyState (/app/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
at XMLHttpRequest._onHttpResponseEnd (/app/node_modules/xhr2-cookies/dist/xml-http-request.js:318:14)
at IncomingMessage.<anonymous> (/app/node_modules/xhr2-cookies/dist/xml-http-request.js:289:61)
at IncomingMessage.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1358:12)

It leads to broken internal state and freezes txs in UI, while they are mined.
Relayer has to to restart such jobs when they fail.

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

Successfully merging a pull request may close this issue.

1 participant