Repository navigation
fix: ensure API errors parsing works even with multiple axios copies - #1909
Merged
szuperaz merged 1 commit intoOct 13, 2026
Conversation
szuperaz
requested review from
MartinCupela,
isekovanic and
oliverlaz
as code owners
October 12, 2026 16:05
isekovanic
approved these changes
Oct 12, 2026
oliverlaz
approved these changes
Oct 13, 2026
Member
|
@szuperaz @isekovanic shall we port this fix to v9 as well? |
MartinCupela
approved these changes
Oct 13, 2026
Contributor
Yes, we kinda have to, I believe it's important |
Contributor
Author
|
We don't need to backport this to v9, because it didn't use |
szuperaz
deleted the
fix-api-error-parsing-when-multiple-axios-instance-is-installed
branch
October 13, 2026 12:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://linear.app/stream/issue/REACT-1225/ensure-stream-chat-js-parses-api-error-correctly-if-multiple-axios
Noticed this while I was checking duplicate message id handling in v10. In RN SampleApp, this doesn't work correctly because SampleApp has two copies of axios:
stream-chatinstalled by SampleAppstream-chatcopyinstallNativeMultipartAdapter,it replaces SampleApp's axios adapter with the RN SDK's adapter copy anderror instanceof AxiosErrorwill always returnfalse, which meant errors weren't parsed properlyaxios, fixed here: fix: don't import axios into RN SDK stream-chat-react-native#3853isAxiosError(error)check, instead of relying oninstanceof