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.

Unable to authenticate due to existing API_Endpoint environment variable

See original GitHub issue

Description

GitHub Desktop is unable to authenticate with GitHub.com because it uses an environment variable called API_Endpoint to override the API address and our application uses an environment variable called - you guessed it - API_Endpoint for its own nefarious ends. See https://github.com/desktop/desktop/issues/794

I think the lesson for all of us is to prefix our environment variable names to make them more specific!

Version

  • GitHub Desktop: 1.2.6
  • Operating system: Windows 10

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
j-f1commented, Jul 10, 2018

The app should probably only be checking for this environment variable in development mode, although it would make sense to namespace it, perhaps GITHUB_DESKTOP_DOTCOM_API_ENDPONT?

0reactions
meaghanlewiscommented, Jul 24, 2018

Okay, got it. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Override API endpoint with env var · Issue #794 · desktop/desktop ...
Override API endpoint with env var #794 ... Unable to authenticate due to existing API_Endpoint environment variable #5137.
Read more >
Resolve API Gateway REST API 403 “Missing Authentication ...
The API request isn't signed when the API method has AWS Identity and Access Management (IAM) authentication turned on.
Read more >
npm error E401: Unable to authenticate, need: BASIC realm ...
Show activity on this post. I'm run set's command from the post and add in nexus "Active realms" profile "npm Bearer Token Realm"....
Read more >
Authentication and authorization in InfluxDB
Authenticate with environment variables. Use the INFLUX_USERNAME and INFLUX_PASSWORD environment variables to provide authentication credentials to the influx ...
Read more >
Environments | ReadyAPI Documentation - SmartBear Support
An environment includes API endpoints, authentication profiles for REST, SOAP, ... Test suite properties and lower-level properties will not be available.
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