expo: Unable to reach Expo servers. Falling back to using the cached dependency map (bundledNativeModules.json) from the package "expo" installed in your project.

Summary

The app was working fine and suddenly without any reasons I am getting this message when ever I am trying to start the app with (npm start) or even I can not login my account from terminal

I am getting this message if I am trying to login

getaddrinfo ENOTFOUND exp.host
Error: getaddrinfo ENOTFOUND exp.host
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)

@expo-bot

If npm start worls the app is not loading

Managed or bare workflow?

managed

What platform(s) does this occur on?

Android, iOS

Package versions

No response

Environment

expo-env-info 1.0.5 environment info: System: OS: Windows 10 10.0.22000 Binaries: Node: 14.16.1 - C:\Program Files\nodejs\node.EXE npm: 6.14.12 - C:\Program Files\nodejs\npm.CMD SDKs: Android SDK: API Levels: 26, 28, 29, 30 Build Tools: 29.0.2, 30.0.3 System Images: android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom npmPackages: expo: ~46.0.7 => 46.0.7 react: 18.0.0 => 18.0.0 react-native: 0.69.4 => 0.69.4 Expo Workflow: managed

Reproducible demo

in npm start

Stacktrace (if a crash is involved)

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 36 (4 by maintainers)

Most upvoted comments

network issue. npx expo start --offline works for me.

I had the same problem, I fixed by clearing the bundler cache using : npx expo start -c

first of all power off/on your router to have refreshed data connection then open your folder using cmd and type the command npx expo start -c

it will work like margic

I had the same problem, I fixed deleting the folder content at:

<ROOT_PROJECT_FOLDER>/.expo/web/cache/development/babel-loader

Ps.: I’m using babel loader plugin

I faced the same issue and I have done it also. Submitted the request to etisalat to unblock the site https://exp.host/--/versions

@brentvatne I did call Etisalat UAE and then they asked me to go through their wbsite www.etisalat.ae/proxy and write a request to unblock the website specially it’s opened normally for Du users

Please fo the same and ask anyone you know to do the same

@brentvatne it seems there is an issue in expo server because even expo go app is not opening while also can not log in from the terminal

@hatim85f you are right, I got the same issues with the app and terminal. We need to submit all forms to solve this issue

@NKANGIJAFARI you are right when I did the same it’s working . regarding expo go you can download a virtual device on your device and use it but this has some drawbacks

  1. you can test either ios or android (as per your operating system)
  2. it’s not practical thing to do
  3. the fact of that may be your internet provider could block your service due to using vpn

I think something else need to be done or find another alternative

@brentvatne I am living in UAE, regarding https://expo.dev/ yes I can access it normally while I can not access https://exp.host/--/versions

Everything was working fine and suddenly everything stopped

  1. I can not access project from Expo - go
  2. in ios Expo-go is not even opening
  3. android Expo-go is opening but not logging in my expo account
  4. if any of them load the project I am getting these error messages
  5. I did update expo version to check if there is any issues with it
  6. I did init a brand new project may be there is a bug in the previous one
  7. I did updated Expo - go , delete and reinstall
  8. after starting the project using expo start or npx expo start in case of 46SDK the browser is not accessing exp://192.168.1.210:19000
  9. actually everything started with this issue (Error encountered while fetching Expo token, expected an OK response, received: 400 (body: "{"errors":[{"code":"VALIDATION_ERROR","message":"The Expo push notification service is supported only for Expo projects. Ensure you are logged in to your Expo developer account on the computer from which you are loading your project.","isTransient":false}]}").]) WhatsApp Image 2022-08-19 at 12 36 18 AM

Hope that may help investigating what is going on

taking in consedration I was working for this porject for the last 4 months without any issues and everything came suddenly out of nowhere WhatsApp Image 2022-08-19 at 11 17 07 AM WhatsApp Image 2022-08-19 at 11 17 06 AM

are you able to access https://expo.dev in your web browser? what about https://exp.host/--/versions?

@hatim85f - are you still able to use the cli after this error or does it bring you back to the prompt?

additionally - it looks like you are using the global expo cli package. you are using sdk 46 so you should be using the local cli. run npx expo start in your project

more info in: