-
Notifications
You must be signed in to change notification settings - Fork 60
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
401 - Bad credentials Travis #104
Comments
It took me 27 releases but I got it.I had to type Little bit of backstory:Originally travis was split in travis-ci.org for opensource and travis-ci.com for paid private project. However in may 2018 they decided to move to travis.com only. So when I signed up to travis I got an travis-ci.com account, but the commandline tool https://github.com/travis-ci/travis.rb was last updated in march and so it doesn't know that the two domains are now united. Therefore, the tool assumed that my opensource project is on .org which is wrong and with However, I am not sure if this is the reason it didn't worked, it is just the only explanation I can think of. Please correct me if I am wrong. Add this to .travis.ymlMaybe it would be a good idea to add to
|
@flofriday Thanks! It solved my issue, too. This could be added to the documentation of |
Now I understand it. We should choose |
Yeah the option with --pro solves it.
I will write a PR to make the documation more clearly about this difference.
|
@flofriday Maybe this doc would help a little. Seemingly there will be a full transit from |
I created the PR #105, and I will leave this issue open for now until the problem is fixed, so future users can find the solution faster. @psychelzh yes if found the document helped once I found out that |
Travis appears to be broken: something about bad credentials: https://travis-ci.org/RuddockHouse/RuddockConstitution I think it could be solved by japaric/trust#104 though. Time to ask Alex about it.
Just had this issue and had the wrong permission on my personal token. It's successfully building with these permissions: |
I don't like writing an issue here and bore you but I spend the whole day with 22 releases and everyone failed. I simply don't know what to do at this point.
What I did
travis encrypt bd2XXXXXXX46f
-> travis fails everytime at deployment withGET https://api.github.com/user: 401 - Bad credentials
https://travis-ci.com/flofriday/thumbcloud/jobs/128447592I also tried:
travis encrypt bd2XXXXXXX46f -r flofriday/thumbcloud
travis encrypt -r flofriday/thumbcloud -org
like recommended here: Why does travis report 'Bad Credential' and 'not a tagged commit' alternately? travis-ci/travis-ci#8128 which gives a prompt to enter the key, however exiting with CTRL - D didn't worked on my windows machine"
travis encrypt bd2XXXXXXX46f --add
travis encrypt bd2XXXXXXX46f --add deploy.api_key
The text was updated successfully, but these errors were encountered: