-
-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to update commit status: making request ... unexpected status code: 401, body #54
Comments
Have you verified via
401 is the code you get for bad authentication. |
@lkysow, yes sir:
|
Looking at the tf code, it looks like it's being passed in correctly. I'd like to fully eliminate the chances of the credentials being passed to Atlantis being incorrect. Can you verify what values were passed in to the container by creating a custom workflow that echo's out the environment variables? # atlantis.yaml
version: 3
projects:
- dir: .
workflow: echo
workflows:
echo:
plan:
steps:
- run: echo $ATLANTIS_BITBUCKET_USER
- run: echo $ATLANTIS_BITBUCKET_TOKEN |
Sorry, where do I look to see the actual echo'ing out? (sorry, I'm new to Fargate) I see in CloudWatch Logs the commands run successfully:
In the container's environment variables I see:
even though I've set both |
Sigh.. After far too long, I realized the output was being added as a comment to the PR. The good news is 1) the token was being written correctly and 2) after one of the 362 steps I've taken today, Atlantis is working for me now. Thanks for your help! |
🎉 so what was the problem in the end? For others who stumble on this. |
Unfortunately, I honestly don't know. |
I was testing my atlantis instance with my repos and I had the same error. My bot had no access to the repos |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
I'm running into problems, presumably with bitbucket authentication.
I've verified the bitbucket username and app password using curl.
My terraform.tfvars has the following (with actual username and app password):
I see the
ATLANTIS_BITBUCKET_USER
populated correctly as an environment variable for the Fargate container.However, when I test it fails with the following:
The text was updated successfully, but these errors were encountered: