RonRadtke / react-native-blob-util

A project committed to making file access and data transfer easier, efficient for React Native developers.
MIT License
768 stars 130 forks source link

Integration network debugging react-native-debugger #355

Open Jasper-zzq opened 6 months ago

Jasper-zzq commented 6 months ago

In order to debug some issues I'm having I would like to see the network request (url, headers, cookies, request, response, etc). In my case, I particularly want to verify that the session and rememberme cookies are being sent.

These days react-native-debugger supports this option for regular fetch requests, but I don't see the RNFetchBlob request show up in the network tab.

Is there a way I can enable this?

RonRadtke commented 6 months ago

No you can't. The library is using native requests, not using the fetch offered by react-native. Therefore react-native-debugger can't intercept and inspect these. You would need to use some network monitoring tool or put prints in the native code. But in general, if a normal fetch has your cookies, this library should use them too