Uploading video URL error

Please provide the following:

  1. SDK Version: 38
  2. Platforms(Android/iOS/web/all): iOS (Android works…)

We’re using an image browser library that utilises MediaLibrary / FileSystem to build an array of selected items on a device that a user can then upload using fetch.

The code that builds the formData is as follows:

 let formData = new FormData();

        this.state.photos.map((image, i ) => {

            let uri = image.file;

            // extract the filetype
            let fileType = uri.substring(uri.lastIndexOf(".") + 1);

            formData.append('uploads[]', {
                uri,
                name: `photo.${fileType}`,
                type: `image/${fileType}`,
            });

        })

This is then posted using fetch

let options = {
                method: 'POST',
                body: formData,
                headers: {
                    Accept: 'application/json',
                    'Content-Type': 'multipart/form-data',
                    'Authorization': 'Bearer ' + userToken
                },
            };


            fetch(apiUrl, options)

On Android, photos and videos both work perfectly.

On iOS photos work, but the second you submit with a video this error appears:

No suitable URL request handler found for assets-library://asset/asset.MOV?id=FDD458E2-6D12-4D4B-B3CA-78920E915CA0&ext=MOV
ABI38_0_0facebook::ABI38_0_0React::JSIExecutor::defaultTimeoutInvoker(std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > ()>)
ABI38_0_0RCTNetworking.mm:657
ABI38_0_0facebook::ABI38_0_0React::JSIExecutor::defaultTimeoutInvoker(std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > ()>)
ABI38_0_0facebook::ABI38_0_0React::JSIExecutor::defaultTimeoutInvoker(std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > ()>)
ABI38_0_0facebook::ABI38_0_0React::JSIExecutor::defaultTimeoutInvoker(std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > ()>)
ABI38_0_0facebook::ABI38_0_0React::JSIExecutor::defaultTimeoutInvoker(std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > ()>)
ABI38_0_0facebook::ABI38_0_0React::JSIExecutor::defaultTimeoutInvoker(std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > ()>)
E2D6A76B-6879-31A3-8168-DF49F94E17CD
E2D6A76B-6879-31A3-8168-DF49F94E17CD
E2D6A76B-6879-31A3-8168-DF49F94E17CD
ABI38_0_0facebook::ABI38_0_0React::JSIExecutor::defaultTimeoutInvoker(std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > ()>)
ABI38_0_0facebook::ABI38_0_0React::JSIExecutor::defaultTimeoutInvoker(std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > ()>)
ABI38_0_0facebook::ABI38_0_0React::JSIExecutor::defaultTimeoutInvoker(std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > ()>)
361DA09A-E7CE-30EB-8DFC-9D9AF9DE4A0A
361DA09A-E7CE-30EB-8DFC-9D9AF9DE4A0A
361DA09A-E7CE-30EB-8DFC-9D9AF9DE4A0A
361DA09A-E7CE-30EB-8DFC-9D9AF9DE4A0A
361DA09A-E7CE-30EB-8DFC-9D9AF9DE4A0A
_pthread_wqthread
start_wqthread

There’s no useful information in here as to how or where this starts, why it appears and which code is causing it, where is the unknown URL request coming from? why is it only executing for video? why is it only doing it on iOS??

This has been tested on simulators and physical devices with the same results, anyone who has run in to this and can offer advice I will be very grateful for!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.