Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

expo start on iOS simulator and real device returns 400 #1444

Closed
kmanj-pixel opened this issue Jan 14, 2020 · 16 comments
Closed

expo start on iOS simulator and real device returns 400 #1444

kmanj-pixel opened this issue Jan 14, 2020 · 16 comments

Comments

@kmanj-pixel
Copy link

kmanj-pixel commented Jan 14, 2020

Description

expo start on iOS simulator and real iPhonereturns 400 in console and "Could not load exp://[IP]:19000" in expo client. Is this related to #1436?

Does not seem to be happening on Android simulator. (No real Android device to test.)

Expected Behavior

What action did you perform, and what did you expect to happen?
App builds -- none of our code changed so this should be working...

Observed Behavior

What actually happened when you performed the above actions?

If there's an error message, please paste the full terminal output and error message in this code block:

Error: Request failed with status code 400
    at createError (/home/user/.nvm/versions/node/v12.14.0/lib/node_modules/expo-cli/node_modules/axios/lib/core/createError.js:16:15)
    at settle (/home/user/.nvm/versions/node/v12.14.0/lib/node_modules/expo-cli/node_modules/axios/lib/core/settle.js:17:12)
    at IncomingMessage.handleStreamEnd (/home/user/.nvm/versions/node/v12.14.0/lib/node_modules/expo-cli/node_modules/axios/lib/adapters/http.js:237:11)
    at IncomingMessage.emit (events.js:215:7)
    at endReadableNT (_stream_readable.js:1184:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)

Environment

Please run expo diagnostics in the project folder and copy the output here:
Expo CLI 3.11.5 environment info:
System:
OS: Linux 4.4 Ubuntu 18.04.2 LTS (Bionic Beaver)
Shell: 4.4.19 - /bin/bash
Binaries:
Node: 12.14.0 - ~/.nvm/versions/node/v12.14.0/bin/node
Yarn: 1.21.1 - ~/.nvm/versions/node/v12.14.0/bin/yarn
npm: 6.13.4 - ~/.nvm/versions/node/v12.14.0/bin/npm
npmPackages:
expo: ^36.0.0 => 36.0.2
react-native: https://github.com/expo/react-native/archive/sdk-36.0.0.tar.gz => 0.61.4
npmGlobalPackages:
expo-cli: 3.11.5

Also specify:

  • Phone/emulator/simulator platform, model and version:
    Emulator: iPhone X
    Phone: iPhone XR, iOS 13
@chrisdrackett
Copy link

seeing this on a Mac as well, lots of people seem to be having this issue: https://forums.expo.io/t/request-failed-with-status-code-400-on-local-environment/32156/11

@BrianLi101
Copy link

same issue affecting both Android/iOS devices and emulators on my mac

@tonyhhart
Copy link

I guess it`s fixed. Probably some server error

@Sford4
Copy link

Sford4 commented Jan 14, 2020

Same issue, iOS simulator and both iOS and Android device cannot load, return 400

EDIT: Everything's back up, agreed @tonyhhart

@anbackmynt
Copy link

Had same experience, works now, plz close issue

@brentvatne
Copy link
Member

indeed there was a server issue, apologies for that!

@mikeRChambers610
Copy link

Is there a server issue right now? 6PM 4/14/2020.

Experiencing a 400 error. Start happening randomly. Seems to be the same error as previous server issues. Can someone confirm and give an estimated time for the issue to be resolved? Thanks in advance?
Error: Request failed with status code 400
at createError (/usr/local/lib/node_modules/expo-cli/node_modules/axios/lib/core/createError.js:16:15)
at settle (/usr/local/lib/node_modules/expo-cli/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (/usr/local/lib/node_modules/expo-cli/node_modules/axios/lib/adapters/http.js:237:11)
at IncomingMessage.emit (events.js:203:15)
at endReadableNT (_stream_readable.js:1145:12)
at process._tickCallback (internal/process/next_tick.js:63:19)

@mikeRChambers610
Copy link

@brentvatne Would you kindly check on my post above?

@brentvatne
Copy link
Member

everything working as expected. what expo-cli version are you using?

@mikeRChambers610
Copy link

mikeRChambers610 commented Apr 14, 2020

everything working as expected. what expo-cli version are you using?

Thanks for the quick response @brentvatne. Im using expo 3.2.3 and SDK is "expo": "^35.0.0". I've been using expo for a couple of years now and never ran into this issue before. It just started randomly happening when I try to run the project on the devices.

@mikeRChambers610
Copy link

The issue is now resolved on my end by upgrading to the latest CLI 3.18.0 by using below install.

npm uninstall -g expo-cli
npm install -g expo-cli

@averyyip
Copy link

Had the same problem on my end and it was working the night before. @mikeRChambers610 solution works.

@brentvatne
Copy link
Member

indeed you should always try to use the latest version of expo-cli! this is why we show warnings when you run commands to tell you about new versions

@67millwood
Copy link

i just did a fresh reinstall of expo-cli and have the same issue. nothing changed in code between last night and today.

@67millwood
Copy link

i just did a fresh reinstall of expo-cli and have the same issue. nothing changed in code between last night and today.

resolved....really odd error to come out of the blue like that.

@brentvatne
Copy link
Member

brentvatne commented Apr 16, 2020

the error was due to a backend change that the older version of the expo-cli depended on. it only impacted versions of expo-cli that were, iirc, 4+ months old. we're going to make it more clear that people should be updating their expo-cli version more regularly

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants