cannnot 'expo login' Request failed with status code 400

After entering ‘expo login’
Enter my email address and password.
I got this error…

Request failed with status code 400
Error: Request failed with status code 400
    at createError (C:\Users\username\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\xdl\node_modules\axios\lib\core\createError.js:16:15)
    at settle (C:\Users\username\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\xdl\node_modules\axios\lib\core\settle.js:17:12)
    at IncomingMessage.handleStreamEnd (C:\Users\username\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\xdl\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)

expo diagnostics

  Expo CLI 3.0.10 environment info:
      OS: Windows 10
      npm: 6.11.3 - C:\Program Files\nodejs\npm.CMD
      Android Studio: Version AI-191.8026.42.35.5791312
  • already set up npm proxy
  • uninstall & reinstall expo-cli


Where you eventually able to log in? If not, could you try logging in via to see if that works?


1 Like

thanks for your response.
I cannot log in by commandprompt and powershell, but can log in by browser(google chrome).

using ‘expo start’ and enter ‘u’,
when I am asked for my email address, I type ‘a’ , android start…

I use a proxy in the network. Is this the cause?

I’m using this version so I don’t have WSL installed.

When I tried this command, no error occurred.
May not be due to proxy settings…

Invoke-RestMethod -Uri -Method Post -body "username=username&password=password"

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