question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request failed with status code 401 on exp build:android

See original GitHub issue

Environment

Environment: OS: Windows 10 Node: 8.9.4 Yarn: Not Found npm: 6.0.0 Watchman: Not Found Xcode: N/A Android Studio: Version 3.1.0.0 AI-173.4720617

Packages: (wanted => installed) expo: ^27.0.1 => 27.0.1 react: 16.3.1 => 16.3.1 react-native: https://github.com/expo/react-native/archive/sdk-27.0.0.tar.gz => 0.55.2

Steps to Reproduce

(Write your steps here:)

  1. I run create-react-native-app HelloWord2
  2. cd HelloWord2
  3. exp start - on device i see could not load exp://vm-cma.nikitindev.helloword2.exp.direct:80
  4. exp ba - in terminal Request failed with status code 401

Expected Behavior

i want run app on the device or get link to get apk

Actual Behavior

I have Warning: .end() was called twice. This is not supported in superagent - http://prntscr.com/jft672 on device i see could not load exp://vm-cma.nikitindev.helloword2.exp.direct:80 - http://prntscr.com/jft7br in terminal Request failed with status code 401 - http://prntscr.com/jft6hj

Reproducible Demo

https://snack.expo.io/H1kj9Tx0z - is the simple app, i can`t create from my PC

P.S sorry for my English

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
PizzaMarinaracommented, May 12, 2018

I did not delete the account and it worked anyway for me. As @perryutkonos mentioned, and as you might already have realized, the problem was probably about capital letters in an account name. When I had the bug I saw the two capital letters in my account after my login from CLI, now I don’t see capital letters anymore and the build process works fine.

Thank you 😃

1reaction
perryutkonoscommented, May 11, 2018

In my case, exp logout and exp login, don’t work. But i delete account and recreate him and… its helped me. Old account name contained capital letters, now only lowercase letters (NikitinDev -> nikitindev). Maybe has bug for capital letters in account name?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Quickly Fix the 401 Unauthorized Error (5 Methods)
The 401 (Unauthorized) status code indicates that the request has not been applied because it lacks valid authentication credentials for the ...
Read more >
Why do I keep getting http status 401 when trying to make a ...
401 is Unauthorized -- The request requires user authentication. The response MUST include a WWW-Authenticate header field containing a ...
Read more >
401 Error: 5 Ways to Troubleshoot and Fix It - Hostinger
The 401 Unauthorized error is triggered by unauthenticated requests made to a WordPress web server. Learn how to identify and fix the issue....
Read more >
expo build:android Request failed with status code 401
Hi guys, i am trying to run expo build:android -t apk and getting Request failed with status code 401. Some advices?
Read more >
401 Unauthorized - HTTP - MDN Web Docs
The HyperText Transfer Protocol (HTTP) 401 Unauthorized response status code indicates that the client request has not been completed ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found