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.

How to recover lost LHCI_GITHUB_APP_TOKEN

See original GitHub issue

Is there any way to find the LHCI_GITHUB_APP_TOKEN once you close the authorization confirmation page? 😄

I can’t find it in the documentation. This would be a good question to add to the FAQ.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
patrickhulcecommented, Nov 13, 2019

Hey folks sorry for the troubles here! A couple notes:

  1. Sounds like a few of you are already know this, but some logs suggest it’s worth noting again… If you’re using the GitHub App you need to be using the LHCI_GITHUB_APP_TOKEN or --githubAppToken not --githubToken or LHCI_GITHUB_TOKEN, and vice-versa if you’re using direct status checks with a personal GitHub access token. There are two different methods of status check support and accidentally using the wrong flag/token leads to the 422 error. We’ll try to make this clearer in the docs.
  2. We were being a little too strict about what URLs you’re allowed to link to from the status checks which also leads to 422. We just pushed an update to the app service that should fallback to a generic docs link in this situation, so things should be working here now as well.
  3. There’s no way to retrieve the token if you’ve lost it. Just uninstalling and reinstalling the app is the right move. We’ll add this to the FAQs 👍
2reactions
ascorbiccommented, Nov 13, 2019

I believe you need to remove the app from Github and then reinstall it

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix "Must provide token for LHCI target" · Issue #144
Done running Lighthouse! Checking assertions against 1 URL(s), 2 total run(s). All results processed! Error: Must provide token for LHCI target
Read more >
Token expiration and revocation
If a valid OAuth token, GitHub App token, or personal access token is pushed to a public repository or public gist, the token...
Read more >
lighthouse-ci/configuration.md at main
If you've forgotten your token, connect directly to your server and run lhci wizard --wizard=reset-build-token .
Read more >
Redirected to this repo when trying to get token ...
Hi, I'm trying to retrieve a token for a private repo we have in our ... The GitHub app requires an OAuth callback...
Read more >
GitHub Apps - Lighthouse CI
Copy the token provided on the authorization confirmation page and add it to ... install -g @lhci/cli@0.6.x - run: npm run build -...
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