jhen0409 / react-native-debugger

The standalone app based on official debugger of React Native, and includes React Inspector / Redux DevTools
MIT License
10.36k stars 809 forks source link

Appending files w/ URIs to FormData doesn't work if Network Inspect is enabled #722

Open kmarple1 opened 2 years ago

kmarple1 commented 2 years ago

React Native Debugger app version: 0.13.0 React Native version: ^0.66.4 Platform: iOS Is real device of platform: No Operating System: macOS

This is a duplicate of https://github.com/jhen0409/react-native-debugger/issues/38, which was closed without resolution. Five years later, it still appears to be a problem.

The main problem is not that the debugger doesn't support inspecting these requests, but that it actively breaks them. Any time you append a file that includes a URI to FormData, it sends [Object object] instead of the binary file if network inspect is enabled. The only solution seems to be disabling network inspect.

This raises a warning in the debugger, the network doc it links to is extremely cryptic. The only mention of URIs is:

It seems this has been a problem since 2017, so it seems like it should at least have an open issue.