Skip to content

Zlib.zlibOnError - Error: unexpected end of file #3648

@roachadam

Description

@roachadam

Describe the bug

axios or a used library produces this exception on some failed web requests, causing an application crash

image

To Reproduce

Hard to say, but this is my axios config:

httpAgent: new HttpProxyAgent(this.proxy),
httpsAgent: new HttpsProxyAgent(this.proxy),
proxy: false,

Make a request using a http proxy that ends up failing. (I know its a bug because sometimes a simple request retry fixes the issue)

Expected behavior

Axios returns the request properly

Environment

  • Axios Version 0.21.0
  • Adapter http
  • Node.js Version v12.16.1
  • OS: [e.g. iOS 12.1.0, OSX 10.13.4]
  • Additional Library Versions [e.g. React 16.7, React Native 0.58.0]

Additional context/Screenshots

https://i.imgur.com/w8GXg3Z.png

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions