-
Notifications
You must be signed in to change notification settings - Fork 305
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
[🐛] Image upload in message input doesn't work on Android 14 (Pixel 5a) #2465
Comments
Hey @statico, can you please help me with the version of Axios that is been used in your project? Ideally, we haven't seen this reported yet by any of our customers, but I suspect it is the Axios version that is used in your project that could be leading to this issue for you. |
@khushal87 Sure:
I'll see if i can upgrade the axios transitive dependency and see if that makes a difference. |
Looking at your Axios version it looks like that's a problem. In Also, you are using an old version of stream-chat-expo. Any reasons for that? |
@statico you mentioned in the issue that you use |
this issue was fixed in #2334 v5.22.1 |
I had tried upgrading to |
I've confirmed this is still an issue with
|
@statico since you are using prnpm here you could be resolving to older axios.. due to the monorepo structure Could you please give me add this to your metro config before exporting your config and give us what is logged please I suspect that metro is still resolving to older axios
|
Hey @statico, by any chance do you have any customization on the sendImage logic of our SDK in your app? We are not able to reproduce this issue on our environments. May be a reproducible repo would help us facilitate this issue. |
Nope, no |
Issue
When uploading an image from the message input in this environment, the upload fails:
Stream hides the error, unfortunately. If you run
adb logcat
you can see this error:(It would be great if the
handleFileOrImageUploadError()
function inMessageInputContext.tsx
showed this error instead of consuming it and hiding it completely.)The only reference to this appears to be facebook/react-native#25244 which, luckily references the solution: facebook/react-native#25244 (comment)
Here's my solution using Axios interceptors:
Steps to reproduce
Steps to reproduce the behavior:
adb logcat
to see errorsExpected behavior
The image should be uploaded to the message input and users should be able to send the image to the channel.
Project Related Information
Customization
Click To Expand
Offline support
Environment
Click To Expand
package.json
:react-native info
output:n/a -- using Expo
stream-chat-expo
version you're using that has this issue:Android 14
Pixel 5a
Additional context
Screenshots
Click To Expand
(see above video)
The text was updated successfully, but these errors were encountered: