React native NSPOSIXErrorDomain Code = 61 "Connection refused"

I am trying to deploy a React Native app to my phone with a standalone package. I have not developed for ios before and am not sure where to look for this error. And yes, my application is called "ReactNativeTest", I did not know that Xcode would make a folder called "ReactNativeTestTests" haha.

So where to start this problem?

2015-11-14 15:58:36.637 [error][tid:com.facebook.React.WebSocketExecutor][RCTWebSocketExecutor.m:127] WebSocket connection failed with error Error Domain=NSPOSIXErrorDomain Code=61 "Connection refused" 2015-11-14 15:58:36.686 reactNativeTest[5240:2439923] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. ( "<NSLayoutConstraint:0x136f60520 V:|-(20)-[UIInputSetContainerView:0x136f5f8b0] (Names: '|':UITextEffectsWindow:0x136f5ece0 )>", "<NSLayoutConstraint:0x136e2fc60 'UIInputWindowController-top' V:|-(0)-[UIInputSetContainerView:0x136f5f8b0] (Names: '|':UITextEffectsWindow:0x136f5ece0 )>" ) Will attempt to recover by breaking constraint <NSLayoutConstraint:0x136f60520 V:|-(20)-[UIInputSetContainerView:0x136f5f8b0] (Names: '|':UITextEffectsWindow:0x136f5ece0 )> Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful. 2015-11-14 15:58:38.625 [error][tid:com.facebook.react.RCTBridgeQueue][RCTWebSocketExecutor.m:70] 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 in `RCTWebSocketExecutor.m`. 
+5
source share
2 answers

The last line of the error gives you a hint where to look:

Connected to http: // localhost: 8081 / debugger-proxy . Are you starting a node proxy? If you are working on a device, check if they have the correct IP address in RCTWebSocketExecutor.m .

Additional Information:

Debugging on a real device: Open the RCTWebSocketExecutor.m file and change localhost to the IP address of your computer. Shake the device to open the development menu with the ability to start debugging.

Better yet, check the documentation that Facebook provides Launch on the device .

+6
source

I had problems before where the wrong IP address was, but most recently I could not solve this problem until I just turned off WiFi and then turned on again.

The same network. The same IP. Who knows why, but it worked for me ¯_ (ツ) _ / ¯

+1
source

Source: https://habr.com/ru/post/1235958/


All Articles