jhen0409 / jhen0409/react-native-debugger
Appending files w/ URIs to FormData doesn't work if Network Inspect is enabled
- Lingua principale
- JavaScript
- Stelle
- 10.4k
- Fork
- 815
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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:
- React Native FormData supports the uri property. You can use files from CameraRoll, but originalFormData isn't supported.
It seems this has been a problem since 2017, so it seems like it should at least have an open issue.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia riproducendo un upload React Native FormData con una URI di file mentre Network Inspect è abilitato, quindi traccia dove la request ispezionata serializza la voce FormData. Il lavoro è completato quando il file associato alla URI rimane binario invece di diventare [Object object], mentre le request senza ispezione continuano a funzionare.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, react-native
- Ambito
- networking, tooling
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100