question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when trying to debug from device

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:3
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
aleclarsoncommented, Mar 8, 2016

#6362 and #6345 both have a go at fixing this issue

0reactions
brentvatnecommented, May 31, 2015

@jtremback - hmm, it sounds vaguely familiar but having looked through several hundred issues in the last few days I’m having a hard time remembering exactly, if you find it let me know

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugging Exceptions within your App - CodePath Cliffnotes
Debugging Procedure · Witnessing the Crash · Setting Up Error Filter · Find the Stack Trace · Identify the Exception · Open the...
Read more >
Network connection lost error while trying to debug
Since updating to VS Enterprise 15.6 I have been unable to debug my UWP app using either the Microsoft Emulator or an actual...
Read more >
Debugging WidgetKit install error … | Apple Developer Forums
I'm trying to create an iOS 14 WidgetKit widget. It's compiling, but when I try to run it, on either simulator or device,...
Read more >
Flutter Error when trying to debug Windows App - Stack Overflow
Error waiting for a debug connection: The log reader stopped unexpectedly, or never started. Error launching application on Windows.
Read more >
Debugger Error when trying to debug PIC24EP with MPLAB ...
The target device is not ready for debugging. Please check your configuration bit settings and program the device before proceeding. The most ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found