Skip to content

Error when trying to debug from device #883

@vitch

Description

@vitch

After following the instructions to run my app on a device I still got an error when I shook the device and tried to enter debug mode:

[RCTWebSocketExecutor.m:108] WebSocket connection failed with error Error Domain=NSPOSIXErrorDomain Code=61 "The operation couldn’t be completed. Connection refused"
2015-04-16 16:35:58.255 [error][tid:main][RCTWebSocketExecutor.m:50] Connection to http://localhost:8081/debugger-proxy timed out. Are you running node proxy? If you are running on the device check if you have the right IP address on `RCTWebSocketExecutor.m` file.

With help from @vjeux on IRC we got it down to RCTWebSocketExecutor.m#L33 where localhost is hardcoded.

Hardcoding my current IP address in there fixed the issue for me but the actual fix will obviously involve passing through the value of jsCodeLocation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions