Connection problem with expo to run either link share and device

#1

I have often experienced connection error when access app from my device iOS, what happened ? kind of unstable connection, when work and doing save app, screen will auto refreshed and come up with error connection on screen, anyone can help?

#2

can you post the exact text of the error message or a screenshot next time this happens?

#3

sdHi cchever error have two kind like this:

#4

hi ccheever … bellow are the two error, can you tell me how to solve this

#5

What is the output from the packager? Are you using create-react-native-app or XDE?

#6

I am using XDE, the output is tell about 404 something like that if I m not forgot.

#7

Can you try restarting XDE? Or putting a link to your code on Github here? It’s hard to tell what’s going on from what you’ve told me.

#8

Hi ccheever:

In browser console log error like this : WebSocket connection to ‘ws://localhost:19001/debugger-proxy?role=debugger&name=Chrome’ failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED.

And in from the output of expo like below:

7:49:34 AM
::1 - - [09/Jul/2017:00:49:34 +0000] “GET /message?role=ios-rn-rctdevmenu HTTP/1.1” 404 43 “-” "-"
7:49:37 AM
::1 - - [09/Jul/2017:00:49:37 +0000] “GET /message?role=ios-rn-rctdevmenu HTTP/1.1” 404 43 “-” "-"
7:49:40 AM
::1 - - [09/Jul/2017:00:49:40 +0000] “GET /message?role=ios-rn-rctdevmenu HTTP/1.1” 404 43 “-” "-"
7:49:43 AM
::1 - - [09/Jul/2017:00:49:43 +0000] “GET /message?role=ios-rn-rctdevmenu HTTP/1.1” 404 43 “-” "-"
7:49:46 AM
::1 - - [09/Jul/2017:00:49:46 +0000] “GET /message?role=ios-rn-rctdevmenu HTTP/1.1” 404 43 “-” "-"
7:49:49 AM
::1 - - [09/Jul/2017:00:49:49 +0000] “GET /message?role=ios-rn-rctdevmenu HTTP/1.1” 404 43 “-” "-"
7:49:52 AM
::1 - - [09/Jul/2017:00:49:52 +0000] “GET /message?role=ios-rn-rctdevmenu HTTP/1.1” 404 43 “-” "-"
7:49:55 AM
::1 - - [09/Jul/2017:00:49:55 +0000] “GET /message?role=ios-rn-rctdevmenu HTTP/1.1” 404 43 “-” "-"
7:49:57 AM
::1 - - [09/Jul/2017:00:49:57 +0000] “GET /message?role=ios-rn-rctdevmenu HTTP/1.1” 404 43 “-” "-"
7:50:00 AM
::1 - - [09/Jul/2017:00:50:00 +0000] “GET /message?role=ios-rn-rctdevmenu HTTP/1.1” 404 43 “-” "-"
7:50:03 AM
::1 - - [09/Jul/2017:00:50:03 +0000] “GET /message?role=ios-rn-rctdevmenu HTTP/1.1” 404 43 “-” “-”

#9

Are you staying on a consistent network connection? Is your device staying on the same WiFi as your computer?

#10

hi ide… yes I do my laptop and device in same WIFI internet connection.

I have experienced so many connection case in way to access my device or genymotion, sometime I refresh xde or app it work, but sometime not, so I do reinstall couple time if access to my device/genymotion have problem, kind of frustrated of this unstable and not smooth development, I m using windows 7 and device iphone and android. Thanks if any solution for this case.