Error when login inside terminal and expo start

  Expo CLI undefined environment info:
    System:
      OS: Linux 5.10 Arch Linux
      Shell: 3.1.2 - /bin/fish
    Binaries:
      Node: 15.10.0 - /usr/bin/node
      Yarn: 1.22.10 - /usr/bin/yarn
      npm: 7.6.0 - /usr/bin/npm
    IDEs:
      Android Studio: 4.1 AI-201.8743.12.41.6953283
    npmPackages:
      expo: ~40.0.0 => 40.0.1 
      react: 16.13.1 => 16.13.1 
      react-dom: 16.13.1 => 16.13.1 
      react-native: https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz => 0.63.2 
      react-native-web: ~0.13.12 => 0.13.18 
    npmGlobalPackages: {}
    Expo Workflow: managed

I’m trying to login to the terminal using expo login
It lets me to enter my email address and password but after that, an error occurs.

Invalid value "undefined" for header "Exponent-Client"
TypeError [ERR_HTTP_INVALID_HEADER_VALUE] [ERR_HTTP_INVALID_HEADER_VALUE]: Invalid value "undefined" for header "Exponent-Client"
    at ClientRequest.setHeader (node:_http_outgoing:576:3)
    at new ClientRequest (node:_http_client:266:14)
    at Object.request (node:https:333:10)
    at RedirectableRequest._performRequest (/usr/lib/node_modules/expo-cli/node_modules/follow-redirects/index.js:262:24)
    at new RedirectableRequest (/usr/lib/node_modules/expo-cli/node_modules/follow-redirects/index.js:60:8)
    at Object.request (/usr/lib/node_modules/expo-cli/node_modules/follow-redirects/index.js:458:14)
    at dispatchHttpRequest (/usr/lib/node_modules/expo-cli/node_modules/axios/lib/adapters/http.js:195:25)
    at new Promise (<anonymous>)
    at httpAdapter (/usr/lib/node_modules/expo-cli/node_modules/axios/lib/adapters/http.js:46:10)
    at dispatchRequest (/usr/lib/node_modules/expo-cli/node_modules/axios/lib/core/dispatchRequest.js:52:10)

The same thing happens when I run expo start and scan the QR code with my IOS device. Expo go opens and suddenly closes and there’s an error message on the terminal.

Warning: Problem validating app.json: Unable to perform cache refresh for /home/username/.cache/expo/schema-40.0.0.json: TypeError [ERR_HTTP_INVALID_HEADER_VALUE]: Invalid value "undefined" for header "Exponent-Client".

Hey @james0248, from the looks of your expo diagnostics output it looks like you are running an experimental version of node. You’ll need to run a stable version (even numbered versions are stable and should be used in production applications – the latest being 14.x). Can you try switching to a stable version and seeing if that fixes things?

Cheers,
Adam

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