I’m getting the following warning in my console for the last couple of hours.
Warning: could not reach `exp.host`.
We couldn't reach some of our domains, this might cause issues on our website or services.
Please check your network configuration and try to access these domains in your browser.
Since then my RN app on emulator is throwing a weird error related to the i18n-js expo library:
[Unhandled promise rejection: TypeError: locale.split is not a function. (In ‘locale.split(“-”)’, ‘locale.split’ is undefined)]
I haven’t touched the code and everything was working fine yesterday.
I am getting this similar error (happy im not the only one)
I see it when running NPM start as an issue in the Metro Bundler
And also when trying to publish any package (one that worked fine last time and a whole new one from just expo init.
The messages i receive are:
Warning: could not reach exp.host.
We couldn’t reach some of our domains, this might cause issues on our website or services.
Please check your network configuration and try to access these domains in your browser.
Starting Metro Bundler.
Building iOS bundle
connect ECONNREFUSED 127.0.0.1:80
We recently added a quick network check to see if our services are accessible. Normally, this would only run when running $ expo doctor but I see this is happening for you when starting the packager as well. I’m sorry that happens, and we will patch that asap!
As for you @xuthal, it looks like if you terminate the CLI and remove the .expo folder, it should be fixed.
As for you @maxaquilino, it looks like you have an issue in your code. It tries to split something from a locale method, wrapped inside promises, which is either not set or undefined.
@maxaquilino perfect, yes the root will return with “404 not found”. It’s not an endpoint that’s serving our website, so it might be throwing that. But the message with Warning: could not reach exp.host. is still popping up for you? Could you try 1 more command, if this warning still pops up: ping exp.host?
Thanks for the feedback @maxaquilino
Good to know that the warning message is only a visual thing. I am able to connect to both urls with the browser, and Ping works fine as well.
I was thinking that the connect ECONNREFUSED 127.0.0.1:80 would be connected to the warning, but guess that it is something else.
I did as you suggested, i terminated the CLI with ctrl+c and removed the .expo folder from the project. Tried this with both a new project and an exsisting one. But the error kept happening for both of them.
What I did notice is that if I publish again without terminating the application then it will publish succesfully.
Every first publish of my projects will fail with connect ECONNREFUSED 127.0.0.1:80
Each publish after that succeeds.
Perhaps you have another tip on how to solve this, otherwise ill just learn to publish dubble for a while
Same here. I tried updating expo, I did a exp ping and it didn’t return any problems. I’m trying to connect with my firebase database but it seems like I have a problem too. Anybody able to help?
Me too, since the upgrade the warning has kept away.
Just a side note…
I have strong feeling that that problem was causing side effects to my App in particular to the Expo Localization i18n-js package, throwing strange error messages such us “…object undefined”
I’ve not changed any code and now App is working again without a problem.
I have the same issue as you. After upgrading expo-cli to 3.24.2, the first time I press “Publish”, it will show ECONNREFUSED 127.0.0.1:80 but the next times it will work without errors.