Redux Saga API call fails when upgrading Axios 0.28.0 -> 1.6.4 #6602
Unanswered
joewhite101
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are attempting to update from
axios@0.28.0
toaxios@1.6.4
. Requests in some applications work. However in our project using redux saga we get this error:Reverting axios versions returns the code to a working state. It isn't clear how the saga and axios are interacting in a new way with the upgrade. The code below works in a normal async/await context but something with
yield call(
is breaking. I'm sure we've got something incorrect given the age of the codebase and libraries but it isn't clear why the call is failing. The code reaches theaxios.get
but the call never occurs on the network. Any help is appreciated.The Axios code is:
The code in the redux saga is:
which calls:
And finally the call to Axios.
Beta Was this translation helpful? Give feedback.
All reactions