-
Notifications
You must be signed in to change notification settings - Fork 26
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
upgrade axios-cookiejar-support to support axios 1.0 #209
Comments
Hitting this as well. As a simple recreate...
As @huineng says, this module pulls in |
axios/axios#5000 might be relevant here |
Thanks for the issue and the detail y'all - I am going to investigate this week |
I'm not saying that we shouldn't update versions here, but I think maybe worth noting that automatic peerDependency installation is a re-introduced feature in NPM 7+. Whether a peerDependency is attempted to be installed depends on if it is explicitly depended on higher up in the tree. Since the |
@ricellis thanks for that input, that's helpful to remember and presents a solid workaround. Unfortunately, updating the core to use axios 1.0 is not going to be trivial and will almost certainly require a major release. I'm still running into testing issues with how the new version of axios interacts with the cookie jar and |
@dpopp07 Is there any progress on this? |
I encountered this issue after updating to Axios |
@dpopp07 we hit a bug where server disconnects are ignored (i.e. don't cause errors) when accepting gzip encoded responses. The problem is resolved in axios 1.x so this upgrade has increased in importance for our SDK now. I've made an attempt in #213 but the CI doesn't seem to like it, all tests passing for me locally (Node 14, 16, 18) though. |
Sorry all for the lack of updates - I've been working on this in the background but juggling a lot of things at the moment. @ricellis I appreciate the work, I'll check out your PR now |
All - there is a beta version published now that incorporates It can be installed with the |
So i guess this can now be closed as 4.0.0 has been published ? |
in your package json you are using axios-cookiejar-support ^1.0.0
this version is already at 4.0.3 https://github.com/IBM/node-sdk-core/blob/main/package.json
today axios itself upgraded to version 1 https://github.com/axios/axios/releases/tag/v1.0.0
and when using axios v1, node_sdk is no longer working
example of an error
ps i might need to check with that library if it's also compatible with axios 1.0
thanks
is it possible to make the library compatible with axios 1.0 and the latest version of axios-cookiejar-support
thanks
The text was updated successfully, but these errors were encountered: