-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
maxContentLength size of -1 exceeded when response status is 204 #5286
Comments
@amirAlamian did you find a solution for this? I am facing the same issue. |
The same problem seems to occur in v1.5.1. |
1 task
It is still there. The solution is to clear data from the response on the server side. And set the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Hi. I'm using axios in my backend server and when I send a request to a server which is responding with 204 status code, Axios throws an error with this message :
maxContentLength size of -1 exceeded
.I tried to increase the value of maxContentLength variable in the axios config. I event set the MAX_SAFE_INTEGER value for this variable but its not working.
any help
To Reproduce
No response
Code snippet
No response
Expected behavior
No response
Axios Version
1.1.3
Adapter Version
No response
Browser
No response
Browser Version
No response
Node.js Version
18.12.0
OS
Linux (ubuntu 22.04)
Additional Library Versions
No response
Additional context/Screenshots
No response
The text was updated successfully, but these errors were encountered: