React-native: [iOS] Multiple request handler error when uploading a photo from assets-library

Created on 26 Jul 2016  路  4Comments  路  Source: facebook/react-native

I'm getting the following error when I try uploading a photo from asset-library.

The RCTURLRequestHandlers RCTImageLoader and RCTAssetsLibraryRequestHandler both reported that they can handle the request { URL: assets-library://asset/asset.JPG?id=9F983&ext=JPG}, and have equal priority (0). This could result in non-deterministic behavior.

You can reproduce the problem by opening XMLHttpRequest example from UIExplorer project and simply tapping on Upload button.

I tracked down the problem and it seems it's introduced with commit 98f06c8.

Locked

Most helpful comment

Thanks for reporting! I'll fix it.

All 4 comments

Thanks for reporting! I'll fix it.

@nathanajah the introduction of this https://github.com/facebook/react-native/commit/98f06c88764d505ef0514d8b6a1d514c2768ea5e#diff-6c79938e43c7e10abca60323d26f1935 disables the ability to upload video using an asset-library url

hi, We seem to be seeing it with react-native version 0.44.0. It is rare and nondeterministic so hard to have a repro case. (sorry this image is always coming through giant here.)
image

^ +1, same issues as @jslz, RN 0.44, any fixes ?

Was this page helpful?
0 / 5 - 0 ratings