You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm making a multipart POST request using any of XMLHttpRequest, Fetch, or Axios. This request succeeds in iOS but fails in Android. The error object i get is "{ isTrusted: false }"
Interestingly, when inspected using the Flipper plugin, the network request actually succeeds with 200 status after ~10s. However, the RN network request failed within 2s.
In theory, one can just setup formData with the above information and make a network request in RN to reproduce the issue. However, because the server requires authentication, I have redacted the information needed required to get the same response from the server.
Expected Results
I expect the React Native network code to give me the response found in Flipper Network Plugin
The text was updated successfully, but these errors were encountered:
I'm making a multipart POST request using any of XMLHttpRequest, Fetch, or Axios. This request succeeds in iOS but fails in Android. The error object i get is "{ isTrusted: false }"
Interestingly, when inspected using the Flipper plugin, the network request actually succeeds with 200 status after ~10s. However, the RN network request failed within 2s.
Description
Copied from Flipper
Full URL
https://upload.imagekit.io/api/v1/files/upload
Host
upload.imagekit.io
Path
/api/v1/files/upload
accept
application/json, text/plain, /
Accept-Encoding
gzip
Connection
Keep-Alive
Content-Length
2308
Content-Type
multipart/form-data; boundary=bca65c34-a5a7-4aef-b22d-bf0738b814b5
Host
upload.imagekit.io
User-Agent
okhttp/3.12.12
access-control-allow-origin
*
content-length
381
content-type
application/json; charset=utf-8
date
Mon, 21 Jun 2021 08:25:17 GMT
etag
W/"17d-m8bl/CX9lGKegEGSxtqRbWZD4Nw"
x-ik-requestid
17C276C8F28DA7D60A00016401BB60D04CEB39D24891123cbe3de-0d85-4116-831f-c010656e260f
Response body
React Native version:
System:
OS: macOS 11.4
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 1.02 GB / 16.00 GB
Shell: 3.2.2 - /usr/local/bin/fish
Binaries:
Node: 12.21.0 - /usr/local/bin/node
Yarn: 1.18.0 - /usr/local/bin/yarn
npm: 6.14.11 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
Android SDK: Not Found
IDEs:
Android Studio: 4.2 AI-202.7660.26.42.7322048
Xcode: 12.5/12E262 - /usr/bin/xcodebuild
Languages:
Java: 15.0.2 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.1 => 17.0.1
react-native: 0.64.1 => 0.64.1
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps To Reproduce
In theory, one can just setup formData with the above information and make a network request in RN to reproduce the issue. However, because the server requires authentication, I have redacted the information needed required to get the same response from the server.
Expected Results
I expect the React Native network code to give me the response found in Flipper Network Plugin
The text was updated successfully, but these errors were encountered: