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

Ethers throws "uncaughtException: unexpected end of file" #4873

Open
IvanKodak opened this issue Oct 29, 2024 · 5 comments
Open

Ethers throws "uncaughtException: unexpected end of file" #4873

IvanKodak opened this issue Oct 29, 2024 · 5 comments
Assignees
Labels
investigate Under investigation and may be a bug. on-deck This Enhancement or Bug is currently being worked on. v6 Issues regarding v6

Comments

@IvanKodak
Copy link

IvanKodak commented Oct 29, 2024

Ethers Version

6.13.3

Search Terms

uncaughtException

Describe the Problem

I had issues that were happening for some period of time, maybe when the provider that I use did maintenance.
But the main problem is that ethers doesn't handle and return a normal error and because of it I caught uncaughtException.

Could you please check as soon as possible, because for me it's a critical issue. Thanks in advance!

Code Snippet

No response

Contract ABI

No response

Errors

uncaughtException: unexpected end of file
Error: unexpected end of file
    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at Zlib.zlibOnError [as onerror] (node:zlib:190:17)
    at processChunkSync (node:zlib:416:12)
    at zlibBufferSync (node:zlib:179:12)
    at syncBufferWrapper (node:zlib:768:14)
    at IncomingMessage.<anonymous> (/usr/app/node_modules/ethers/src.ts/utils/geturl.ts:105:51)
    at IncomingMessage.emit (node:events:531:35)
    at IncomingMessage.emit (node:domain:488:12)
    at endReadableNT (node:internal/streams/readable:1696:12)

Environment

node.js (v12 or newer)

Environment (Other)

No response

@IvanKodak IvanKodak added investigate Under investigation and may be a bug. v6 Issues regarding v6 labels Oct 29, 2024
@IvanKodak
Copy link
Author

@ricmoo I created PR with realization that can fix this issue, check it pls
https://github.com/ethers-io/ethers.js/pull/4874/commits

@DmytroShalaiev
Copy link

Yes please

@ricmoo
Copy link
Member

ricmoo commented Nov 4, 2024

Thanks for bumping. I missed this before.

I’ll look into it right away. :)

@ricmoo ricmoo added the on-deck This Enhancement or Bug is currently being worked on. label Nov 4, 2024
@DmytroShalaiev
Copy link

Thanks you

@DmytroShalaiev
Copy link

@ricmoo any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate Under investigation and may be a bug. on-deck This Enhancement or Bug is currently being worked on. v6 Issues regarding v6
Projects
None yet
Development

No branches or pull requests

3 participants