Skip to content

[iOS] Multiple request handler error when uploading a photo from assets-library #9031

Description

@halilb

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.

Activity

  1. nathanajah commented on Jul 27, 2016

    @nathanajah
    Contributor

    Thanks for reporting! I'll fix it.

  2. ghost closed this as completedin ffb690fon Jul 27, 2016
  3. added a commit that references this issue on Aug 1, 2016
    07a9701
  4. added a commit that references this issue on Aug 3, 2016
    ba6b158
  5. alexanderjarvis commented on Aug 4, 2016

    @alexanderjarvis

    @nathanajah the introduction of this 98f06c8#diff-6c79938e43c7e10abca60323d26f1935 disables the ability to upload video using an asset-library url

  6. jslz commented on Jun 9, 2017

    @jslz

    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

  7. arjunkathuria commented on Jul 10, 2017

    @arjunkathuria

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

  8. locked as resolved and limited conversation to collaborators on May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions