Skip to content

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

@IvanKodak

Description

@IvanKodak

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

Metadata

Metadata

Assignees

Labels

fixed/completeThis Bug is fixed or Enhancement is complete and published.v6Issues regarding v6

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions