Skip to content
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

Crash on image upload - Missing request token on react-native 0.63 #241

Closed
plotic opened this issue Jul 16, 2020 · 5 comments · Fixed by #312
Closed

Crash on image upload - Missing request token on react-native 0.63 #241

plotic opened this issue Jul 16, 2020 · 5 comments · Fixed by #312
Assignees

Comments

@plotic
Copy link

plotic commented Jul 16, 2020

Describe the bug
Crash on image upload

Dev environment info (please complete/provide the following information):

  • Package version (stream-chat-react-native)
  • react-native
  • Device/Emulator - ios
  • stream version 0.13.1

To Reproduce
Steps to reproduce the behavior:

       const promises = [
           channel.sendImage(
               imageUri          
           )            
       ];
       const results = await Promise.all(promises);
   
       const attachments = results.map(response => {
           return {
               type: 'image',
               thumb_url: response.file,
               asset_url: response.file,
           };
       });
       
       const response = await channel.sendMessage({
           text: text,
           attachments,
       });

Expected behavior
Upload works without crashing

Additional context
User token initialisation using - chat.devToken()

Screenshots
Simulator Screen Shot - iPhone 11 - 2020-07-16 at 11 26 58

gz#4473

@shodgetts
Copy link

Agent comment from Séni Gueye in Zendesk ticket #4473:

Hi,

Thanks for the report.
I'm transferring this on to our React Native team.
They'll get back to you as soon as they possibly can.

Best regards,
Seni

@vishalnarkhede
Copy link
Contributor

Hey @plotic , we are looking into this. Will get back to you shortly :)

@plotic
Copy link
Author

plotic commented Jul 17, 2020

Hey @plotic , we are looking into this. Will get back to you shortly :)

Not sure if it helps, for me it's reproducible when upgrading "react-native" to "0.63.1"

@vishalnarkhede
Copy link
Contributor

@plotic yeah I noticed that as well. Looks like it has already been raised by quite few people:

facebook/react-native#29364
facebook/react-native#29021

@anthony1110
Copy link

I also have same issue. I use hack for this facebook/react-native#29021 (comment).

@vishalnarkhede vishalnarkhede changed the title Crash on image upload Crash on image upload - Missing request token on react-native 0.63 Jul 22, 2020
@vishalnarkhede vishalnarkhede pinned this issue Aug 21, 2020
@vishalnarkhede vishalnarkhede unpinned this issue Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants