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
Axios requests not working after update from 0.19.0 to 0.21.1 #3526
Comments
Same issue here, when using |
the request that I'm testing is not using |
Hi, I think your issue has to do with pull request #3289, you will see we are allowing the browser to settle the content type rather than try to dictate it. Also, there was a change to merge config with #2844, so you would need to check if these changes have any bearing on what you are trying to do above? I would try to debug but you have so much going on in one request it can be any amount of things (configs, blob, response type manipulation). Also, should you be able to would you mind testing with 0.20 and tell us what that does? |
I tried with 0.20.0 version and didn't work. |
Previously, I did my requests like: const headers = new Headers({
"Content-type": "application/json"
}); After this update, Firefox throws me I noticed, as a workaround, that setting headers as a plain object works (also it works removing such a common header). So the issue comes up from the Headers interface. |
We're also experiencing issues with "Network Error", SSL errors, and more errors. |
I'm facing the same issue, PUT and POST requests are not sending the payload. |
Same issue here, after npm prompted me with audit fix during rebuilding my frontend docker container I've updated axios. The next time I've built my container my frontend did not send any requests no matter the browser. |
Same issue here unfortunately. Took several hours to realize axios was the culprit. Rolling back to version 0.19 fixed the issue. |
Also, the way axios handles error responses is a breaking change. Before it would throw if a non-200 was received. Now it does not throw so the response needs to be examined |
We got the same issue here. Auth1 header don't work any more... |
no, even GET methods are not working on Firefox after upgrade to 0.21.1
Em qui., 2 de set. de 2021 às 05:06, Kanat Bektursyn <
***@***.***> escreveu:
… Does this issue occur only in PUT methods?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3526 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPG6VRXJDYLSEVHOF6ERMLT74WAJANCNFSM4VVIZD2A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
I finally got what is going on with this issue https://codesandbox.io/s/determined-moon-c6cy6?file=/src/App.js the code const headers = new Headers()
axios({
...
headers: headers
}) works on version "0.19.x" but not on "0.20.x". Changing to I don't know from where that code comes from |
But that's what is suggested here: #3526 (comment) on January 7th :-) |
but others also didn't give attention to @Crashillo comment... it is why I asked if it was intentional or is just my mistake of not properly using the lib... :) |
So my comment deserves some emojis to make it relevant... |
I have released 0.22.0 please check if that fixes your error, if not please open a new issue :) |
Describe the issue
after updating axios from 0.19 to 0.21.1 I figure out that none of my requests are working in Firefox (it's working on chrome and edge). Not sure how to debug that, I can't even see my request in the network tab... reverting back to 0.19.0 make it work.... there is some breaking change between that updates?
Example Code
Expected behavior, if applicable
should work on Firefox with Axios 0.21.1
Environment
Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.
The text was updated successfully, but these errors were encountered: