7
votes

Réagir NsposixerRordomain Nadifs = 61 "Connexion refusée"

J'essaie de déployer réagir de l'application native sur mon téléphone avec un paquet hors ligne. Je n'ai pas développé pour iOS avant et je ne suis pas sûr de rechercher cette erreur. Et oui, mon application est nommée "réactnativetest", je ne savais pas que Xcode créerait un dossier nommé "ReactnativetestestStest" haha.

Alors, où dois-je commencer par ce problème? P>

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`.


0 commentaires

3 Réponses :


7
votes

La dernière ligne de l'erreur vous donne un indice où regarder:

Connexion à http: // localhost: 8081 / débogueur-proxy a expiré. Es-tu Proxy de nœud en cours d'exécution? Si vous exécutez sur l'appareil, vérifiez si vous avoir la bonne adresse IP dans rcwebsocketexecutor.m .

Informations supplémentaires:

Pour déboguer sur un périphérique réel: ouvrez le fichier rcwebsocketexecutor.m et Modifiez Localhost sur l'adresse IP de votre ordinateur. Secouer l'appareil Pour ouvrir le menu de développement avec l'option pour commencer le débogage.

Mieux encore mieux, vérifiez la documentation que Facebook fournit Exécution sur le périphérique .


1 commentaires

Il y a un problème soulevé pour ce problème. Description peut être vue et suivre ici Github.com/facebook/react-native/issues/1429



2
votes

J'ai eu des problèmes auparavant où l'adresse IP était fausse mais la plupart récemment, je n'avais pas été en mesure de résoudre ce problème jusqu'à ce que je désactive simplement la connexion Wi-Fi et puis de nouveau.

même réseau. Même adresse IP. Qui sait pourquoi mais cela a fonctionné pour moi ¯_ (ツ) _ / ¯


0 commentaires