Failed to execute 'send' on 'XMLHttpRequest', React Native Debugger
See original GitHub issue{
"react": "16.0.0-alpha.6",
"react-native": "^0.44.0",
"realm": "^1.3.1",
...
}
When i debugger on Android,I’ve this error. But debugger on iOS Simulator. It’s working.
Please hope
Issue Analytics
- State:
- Created 6 years ago
- Comments:22 (2 by maintainers)
Top Results From Across the Web
react native - failed to execute 'send' on 'XMLHttpRequest'
I use realm in my project, but when I tried to enable the debugging it shows an error?
Read more >Networking
Many mobile apps need to load resources from a remote URL. You may want to make a POST request to a REST API,...
Read more >XMLHttpRequest.send() - Web APIs | MDN
The XMLHttpRequest method send() sends the request to the server. If the request is asynchronous (which is the default), this method returns ...
Read more >Debugging
You can debug React Native apps using the Chrome debugger tools. Rather than running your app's JavaScript on your phone, it will instead...
Read more >React Native Debugger: Tips for fast debugging
Leveraging the power of Chrome DevTools, RN Debugger logs most of the fetch and XMLHTTPRequest in the network tab of the developer tool....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This may sound dumb but it worked for me: You have to make sure you’re on the same network on the real device and the computer
It seems they just switched from
localhost
to actual ip address. See https://github.com/facebook/react-native/pull/17720/filesJust temporary solution!
So I’ve changed: https://github.com/realm/realm-js/blob/master/react-native/ios/RealmReact/RealmReact.mm#L124 Instead of:
I used this:
And in here: https://github.com/realm/realm-js/blob/master/react-native/ios/RealmReact/RealmReact.mm#L250 Instead of this:
I used this: