realm-js: Error: Failed to load 'http://localhost:8082/create_session'

When running the application on dev mode from my phone I get the following error

Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://localhost:8082/create_session'

If I run the same code on the simulator it works fine.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 6
  • Comments: 23 (6 by maintainers)

Commits related to this issue

Most upvoted comments

Another user hit this here https://github.com/realm/realm-js/issues/276. Are you also on android? If so does running adb forward tcp:8082 tcp:8082 fix the issue for you?

I’ve had issues with debugging and Realm for a long time. It used to work in the emulator but now I can’t debug at all. Of course, that is a huge dealbreaker as debugging is essential.

Is there any chance this will get fixed? Because otherwise, I’m afraid I’ll have to replace Realm with another database.

double checked and definitely got RealmReact.framework in the embedded binaries. Everything works fine when chrome debugging isn’t enabled. But as soon as it is – I get this issue.

I had this error on iOS device and simulator with RN. I found out that I accidentally drag RealmJS.framework to the Embedded Binaries section but not the RealmReact.framework. Fixed this then the error was gone.