Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration network debugging react-native-debugger #355

Open
Jasper-zzq opened this issue Apr 27, 2024 · 1 comment
Open

Integration network debugging react-native-debugger #355

Jasper-zzq opened this issue Apr 27, 2024 · 1 comment

Comments

@Jasper-zzq
Copy link

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants