-
-
Notifications
You must be signed in to change notification settings - Fork 11k
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
AxiosError: maxContentLength size of -1 exceeded #4806
Comments
I have a similar issue when using proxy-agent and the proxy returning 407
|
I am getting the same error when I try to post files using multipart/form-data #4885 |
any update? |
any update? is somewhere trigger response aborted? unlikely is server-side issue. |
AFAICT the error is raised here, in response to an |
I also have the same problem. |
same here |
Any updates on this? |
I am facing same problem too. |
and update? |
I get same issue. |
1 similar comment
I get same issue. |
OK. Thanks.
…On Tue, Nov 15, 2022 at 1:17 PM Sergey S. Volkov ***@***.***> wrote:
@jalethesh <https://github.com/jalethesh> fixed in latest versions
—
Reply to this email directly, view it on GitHub
<#4806 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AX64HJ2LHNVD53SH4UUTS2DWIPHUJANCNFSM5ZVF7ZGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Is this fixed now? I am confused by the update above ^ |
Sorry, I thought this was about swagger-typescript-api and create autoreply for this message ahahah, |
I'm having problems with this too. Will do some investigating myself to see if i can determine the problem. |
I recently fixed the issue. In our cases, it was usually related to WordPress with a cache plugin. If you try The fix is adding this header in your request:
You can read this for more info: Commit: |
This issue occurs to me with v1.2.2. |
no updated? |
I created PR. That's now in review. |
Any update on this? Can we at least merge #4917 please? |
I looked closer at my request using Postman and noticed, that response headers includes |
Adding -> I made the request on the backend to another server and I increased the content size up to 10mb, but still got the same error when my response was around 2 MB. Didn't dig too deep into why it happens, but I just slightly skimmed over the "Check of running Websites results in error "maxContentLength size of -1 exceeded"" issue referred by @louislam |
Best fix I found is to use got instead since this library clearly isn't maintained |
it should fix the issue with axiom error: ' AxiosError: maxContentLength size of -1 exceeded'. There is open issue related to it in axiom github: axios/axios#4806. In hb it causes following errors: [10/18/2023, 5:11:17 PM] [homebridge-tasmota-control] Device: 192.168.0.220 DGM Plug1, check state error: AxiosError: timeout of 10000ms exceeded, trying again. I'm not sure if value of 2000 will be enough
This cost me several hours, I finally narrowed down the problem for my case: The issue was the transfer-encoding. If set to Parts of this might be due to my specific setup. I have Hoverfly as a mitm proxy between node and the real system. The real upstream system would return responses without chunked encoding, but Hoverfly would replay the request with chunked encoding. So the request would work live, but not when replayed. It worked fine for a long time, the issue only appeared when upgrading from [email protected] to [email protected]. Now, I'm just speculating, but when comparing the original response and the replayed one I noticed a few things. Maybe the reason for the closed socket is an error in node itself, because the replay would work fine for curl & Postman.
So there is still some data arriving after the TLS connection has been closed. This is not the case without chunked encoding. |
AxiosError: maxContentLength size of Infinity exceeded this is still happening to me for no reason... I did set infinity and no matter what it will always crash. This must be some nasty bug in axois. Crashing here : AxiosError: maxContentLength size of Infinity exceeded version "axios": "^1.6.3", |
I faced the same problem, adding the "Connection":"keep-alive" request header can resolve this problem. |
I get same issue. |
I've had similar problems with the node@20 update and in the process found a correlation with the
and continue to believe that a node http adapter issue is the underlying cause here |
I got the same issue |
I also got the sane issue randomly, it is not really related to content length, it is probably fired when read Anyways, I also just switched away to |
I also get this but in my case the problem was due to memory pressure. To fix it I just used |
Fixes stupid maxContentLength error on aborted requests (axios/axios#4806)
Fixes stupid maxContentLength error on aborted requests (axios/axios#4806)
Doing an axiosRequest with
const a = await axios.get(URL)
and without any further configuration, it gives error:
' AxiosError: maxContentLength size of -1 exceeded'
The contentLength of the website is significant, >185KB, but as I did not configure any maxContentLength then this behaviour is nonsense.
What's the fix? Tried configuring a huge maxContentLength but still shows the error
The text was updated successfully, but these errors were encountered: