Skip to content

Receiving 'maxContentLength size of -1 exceeded' error randomly when firing a request. #6437

@venkatesh-pinninti

Description

@venkatesh-pinninti

Describe the bug

We're initiating a create request to Shopify, and while the server successfully processes the request and creates the resource, our client encounters a 'maxContentLength size of -1 exceeded' error. Attempting to address this, we set the maxContentLength to Infinity, but this merely alters the error message to 'maxContentLength size of Infinity exceeded'.

This issue surfaced subsequent to upgrading our Axios version from 0.22.0 to 1.6.7. In an effort to resolve it, we upgraded further to version 1.7.2, which mitigated the problem to some extent, though errors still occur albeit less frequently.

To Reproduce

No response

Code snippet

Headers that are being used

'Content-Type': 'application/json',
'Accept-Encoding': 'gzip, deflate'

Expected behavior

No response

Axios Version

1.7.2

Adapter Version

HTTP

Browser

No response

Browser Version

No response

Node.js Version

14.12

OS

No response

Additional Library Versions

No response

Additional context/Screenshots

No response

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