realm-js: Failed to execute 'send' on 'XMLHttpRequest', React Native Debugger


{
"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
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 22 (2 by maintainers)
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
localhostto 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:
@jcharlet It seems you are using two different versions of adb. Can you check you don’t have android tools on two places on your system with different versions
Hi guys,
I had the same issue and these are the steps that I followed to resolve it.
Hope this helps someone
I’m receiving the same issue for no apparent reason because it was working before.
The adb forwarding checks out:
I tried all above solution but none of them worked for please any one works properly please let me know
Wow really, this works somehow. It ain’t dumb if it’s worked. 😉
Thanks for sharing, saved me time.
None of the solutions above has worked for me… Tried to forward with adb, tried to edit code, nothing helped.
I’m not even using the whole platform, just the React Native database. No sync options whatsoever. Why is this
create_sessionbeing called?Thanks @xotahal, this helped me to fix the issue on IOS device.
Actually I have used only the second suggestion: but instead of
http://192.168.x.x:8081I have put there the host of my up and running debugger which had'http://192.168.x.x.xip.io:8081'strange format.