Hi! I’m trying to build the APK for Android but I keep getting a 401 error. I’ve searched everywhere for a solution but none seem to work. I was thinking there was something wrong with my Expo account. First I tried logging out then loggin back in; no luck. Then I created another account, only to get the same 401 errors. I’ve also tried building while my firewall was disabled, still didn’t work.
Solutions I’ve tried but did not work (with links):
- creating a new account
-
exp logout && exp login
thenexp build:android
-
npm i -g expo
andnpm i -g exp
https://forums.expo.dev/t/account-request-failed-with-status-code-401/9664
https://github.com/expo/expo/issues/1740
Here is the error when running expo build:android
Error: Request failed with status code 401
at createError (C:\Users\tommy\AppData\Roaming\npm\node_modules\expo-cli\node_modules\axios\lib\core\createError.js:16:15)
at settle (C:\Users\tommy\AppData\Roaming\npm\node_modules\expo-cli\node_modules\axios\lib\core\settle.js:17:12)
at IncomingMessage.handleStreamEnd (C:\Users\tommy\AppData\Roaming\npm\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)
Occasionally I get this error when running expo build:android
Uncaught Error { [Error: EPERM: operation not permitted, rename 'C:\Users\tommy\.expo\state.json.870850413' -> 'C:\Users\tommy\.expo\state.json']
errno: -4048,
code: 'EPERM',
syscall: 'rename',
path: 'C:\\Users\\tommy\\.expo\\state.json.870850413',
dest: 'C:\\Users\\tommy\\.expo\\state.json' }
I also get this error when trying to publish from the Expo client:
(It’s strange because I was able to publish my app before with no issues)
Request failed with status code 401
raven@2.6.3 alert: failed to send exception to sentry: HTTP Error (413): undefined
Here are my Expo diagnostics
Expo CLI 3.0.10 environment info:
System:
OS: Windows 10
Binaries:
npm: 6.9.0 - C:\Program Files\nodejs\npm.CMD
Thank you!