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
Error response data nodejs #5298
Comments
I'm getting the same error after upgrading to 1.2.0 :( More discussion here: #5296 |
Ditto with GET https://lichess.org/api/user/Toadofsky?trophies=true
Routing through proxy server BeeCeptor I can observe that Lichess response data are valid, however axios 1.2.0 does not handle the gzip encoding:
|
I'm also seeing this, plain old GET requests in my case. |
The temporary workaround is to set |
Indeed, that workaround works in my case... based upon https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding I select
|
Thank you! Worked for me! |
Can a maintainer confirm that manually adding axios/test/unit/adapters/http.js Line 469 in a3d9017
|
+1 |
1 similar comment
+1 |
Same problem here with gzip response and axios 1.2.0 |
I've started migrating all my applications to |
I also see this |
Thank you!! This fixed it! |
I spent my whole day because of this problem...😩 |
Thank you! I was wrestiling with this problem yesterday |
This is serious. Here at the company it stopped working when npm install was given in my package and there was a lot of support, luckily we decided to see if there was any update on axios. Here we solved leaving the version 1.1.13 that was running. |
spent hours to find this page 🤣 |
i downgraded axios to ^0.19.2 it works now |
I spent my entire day because of this same problem and fixed it by downgrading Axios to 1.1.3 🤣 . |
Same for me, I was scratching my head all day about what is broken. Reverting back to the previous version. |
Can confirm the issue as well. Unfortunately it's stopped working everywhere, just as with the v1 release. Looking forward to a fix, as I normally update all libraries to the latest via the npm-check-updates updater. |
same here getting issue |
this is ridiculous, other dependencies are reliant and system is down since yesterday |
I have the same problem after updating from 1.1.3 to 1.2.0 |
Why has this been closed as completed? The issue still persists in |
@macductan this will auto-close when #5306 merges, so it's fine to leave this open :) some people are tracking completion status here for the content-length regression so I'd just let github do its automated stuff |
same 👍🏻 |
same here :( currently |
It also worked for me in my case thanks bro |
@jasonsaayman is this issue closed because it's really fixed in 1.3.1? Setting |
This reverts commit 3ea2137. See axios/axios#5298
This reverts commit 77e8e94. See axios/axios#5298
No its close cause the PR that has the fix has been merged, this is how GitHub works. I will release this weekend |
For those that want to upgrade right now, use |
For those fixing this by downgrading to |
Try the latest release v1.2.1 please |
thank you!, he has been fighting to solve this problem for three days; |
You can always downgrade axios with no problems. |
Thank you, you saved me a lot of time. It worked! |
A fix for this has already been released, why would you still want to use the workaround? |
I Will update yep 👍 |
1.2.1 fixed issue, thanks. Drove me insane for hours.. |
Hey, so I've been using axios for several years now, and I was really surprised that the problem I was having was coming from axios after all. Any ideas on why this happened, and what could be done to prevent similar issues in the future? If the cause is e.g., a lack of manpower I would be e.g., happy to donate some amount so that axios can continue to be maintained (though i don't see a quick link to do this in the repo). |
I was also in surprise that did payload had change or something. Axios having an issue did not cross my mind. Version 1.2.3 should fix it, I think. |
The previous `~1.1` range was to work around axios/axios#5298.
Describe the bug
`
var axios = require('axios');
var data = JSON.stringify({
"production_status": "",
"package_status": [],
"extra_status_reason": [],
"page": 1,
"limit": 1
});
var config = {
method: 'post',
url: 'https://example.com/',
headers: {
'Authorization': 'Bearer token',
},
data: {
"production_status": "",
"package_status": [],
"extra_status_reason": [],
"page": 1,
"limit": 1
}
};
axios(config)
.then(function (response) {
console.log(response.data);
})
.catch(function (error) {
console.log(error);
});
`
When i send API this response
I want respose must be json like that
To Reproduce
No response
Code snippet
No response
Expected behavior
No response
Axios Version
1.2.0
Adapter Version
No response
Browser
No response
Browser Version
No response
Node.js Version
14.20.1
OS
No response
Additional Library Versions
No response
Additional context/Screenshots
No response
The text was updated successfully, but these errors were encountered: