benjreinhart / react-native-aws3

Pure JavaScript React Native library for uploading to AWS S3
MIT License
399 stars 151 forks source link

RCTURLRequestHandlers both reported that they can handle the request #11

Closed jbrozena22 closed 7 years ago

jbrozena22 commented 7 years ago

My app is crashing immediately upon uploading a file to S3 with this package. The strange thing is that the request goes through fine, and the file uploads, but the UI on the app crashes with the attached screenshot.

In digging around for this error, it looks like it usually occurs when the URL supplied to the underlying networking request is null.

Has anyone else here come across this error while using this package?

simulator screen shot aug 5 2016 11 14 09 am

benjreinhart commented 7 years ago

I have not seen that. It feels odd to me that this would be because of a null url. Looks like we have a (mostly) hardcoded url passed to the XMLHttpRequest, not sure how that could be null. Also, in the error above, looks like it is showing you a valid library url for the image.

Can you provide your RN version for context?

jbrozena22 commented 7 years ago

Upgrading RN to v 0.31.0 (latest as of today) solved the problem. This issue seems to have been resolved by this commit: https://github.com/facebook/react-native/commit/ffb690f072aa7dccb2d21f7b6902f6818abb534d

TLDR - upgrade React Native to 0.31.0

jbrozena22 commented 7 years ago

And for reference, I was getting this error on React Native v 0.30.0

benjreinhart commented 7 years ago

Sweet, thanks @jbrozena22 !