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
chore(deps): Update axios to fix CVE #1167
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1167 +/- ##
=======================================
Coverage 62.84% 62.84%
=======================================
Files 127 127
Lines 3192 3192
Branches 817 817
=======================================
Hits 2006 2006
Misses 1186 1186 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
const { response, isAxiosError } = { ...err }; | ||
|
||
if (response && isAxiosError) { | ||
if (response && err.isAxiosError) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For my understanding, what was the issue here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the new version of axios
const { response, isAxiosError } = { ...err }
console.log(isAxiosError); // prints "undefined"
console.log(err.isAxiosError); // prints "true"
It seems like by copying the object the destructuring and direct property access behave differently.
/retest |
3 similar comments
/retest |
/retest |
/retest |
🎉 This PR is included in version 1.67.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Fixes https://issues.redhat.com/browse/RHINENG-8635
Axios did have an error handler refactoring in 0.27.0, therefore I had to change the accessor to
isAxiosError
.