Expo client doesn't work on phone after some pause in use.

#1

I have used CRNA with expo about 2 months and everything was ok. But after some pause, today I noticed that it doesn’t work more.
May be it’s because I have updated my OS Ubuntu 16.04 to 18.04 ?

After npm start in console all it’s ok packager is running. But on the phone there is an error:

uncaught Error: Packager is not running at http://192.168.0.103:19001
In browser on laptop this address are working. And port :19000 too. But on the phone not working both addresses.

On other phone there are other message in expo:

Uncaught Error: java.net.NoRouteToHostException: No route to host
And when I put ip address in browser, it works and get this information:

{"sdkVersion":"27.0.0","name":"dobrofon-mobile-app","slug":"dobrofon-mobile-app","version":"0.1.0","xde":true,"developer":{"tool":"crna","projectRoot":"/home/rus/Dobrofon/dobrofon-mobile-app"},"packagerOpts":{"hostType":"tunnel","lanType":"ip","dev":true,"minify":false,"urlRandomness":null},"env":{},"bundleUrl":"http://192.168.0.103:19001/./node_modules/react-native-scripts/build/bin/crna-entry.bundle?platform=ios&dev=true&minify=false&hot=false&assetPlugin=/home/rus/Dobrofon/dobrofon-mobile-app/node_modules/expo/tools/hashAssetFiles","debuggerHost":"192.168.0.103:19001","mainModuleName":"./node_modules/react-native-scripts/build/bin/crna-entry","logUrl":"http://192.168.0.103:19000/logs","id":"@anonymous/dobrofon-mobile-app-7bcb8d09-73d3-4f7f-87a6-a75e9d9ad295"}

And I suppose it is good to notice, at morning I created new app from the scratch and it was working several minutes until I have made first changes. But then appeared this Error and no one app works after that…

I cant understand what caused this problem. I reloaded laptop, phone. Reinstalled CRNA, cleared packager cache - and everything doesn’t work.

Update:
Today at work, in the office, it works… What is the reason? Any ideas?

#2

Since you aren’t able to access those addresses from the phone and it sounds like things are better when you change locations, I’m guessing this may be a network issue.
You might try installing exp (npm i -g exp) and running the project with the tunnel flag. The tunnel will be a little slower, but is more reliable for this kind of thing

1 Like
closed #3

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.