Realm-js: NetworkError: Failed to execute 'send' on 'XMLhttpRequest'...

Created on 7 Oct 2019  路  5Comments  路  Source: realm/realm-js

Goals

  • Open debugger whitout errors

Actual Results

  • react-native run-android

  • debug

on device emulator and real device connected by usb

image

on browser console

image

Version of Realm and Tooling

  • Windows 10
  • Android
  • "dependencies": {
    "react": "^16.10.2",
    "react-native": "^0.61.2",
    "realm": "^3.2.0",
    },

Changing node_mudules/reaml/.. localhost didn't work

O-Community T-Help

Most helpful comment

Solutioned! in the command terminal run this:

adb reverse tcp:8081 tcp:8081

adb forward tcp:8082 tcp:8082

adb forward tcp:8083 tcp:8083

All 5 comments

Solutioned! in the command terminal run this:

adb reverse tcp:8081 tcp:8081

adb forward tcp:8082 tcp:8082

adb forward tcp:8083 tcp:8083

I still have this error for real device, but not emulator.

@yuripinage Did you follow the suggestion about Chrome extensions in http://facebook.github.io/react-native/docs/debugging#debugging-on-a-device-with-chrome-developer-tools

Yeah, but actually resolved with:
adb kill-server && adb root && adb reverse tcp:8081 tcp:8081 && adb forward tcp:8082 tcp:8082 && adb forward tcp:8083 tcp:8083

And also: https://github.com/realm/realm-js/issues/578#issuecomment-314481708
But localhost:8083, instead of localhost:8082

I m still facing this issue any solution i tried all above solution but not work for me

Was this page helpful?
0 / 5 - 0 ratings