ERROR Unexpected Exception this is probably a bug HTTP Error 400 Bad Request

0 votes

Hi Guys,

I am trying to login to Ansible Galaxy from the command line. But it is showing me the below error. Though I am giving the correct credentials.

$ ansible-galaxy role login

We need your GitHub login to identify you.
This information will not be sent to Galaxy, only to api.github.com.
The password will not be displayed.
Use --github-token if you do not want to enter your password.
GitHub Username: xxxxxxx
Password for xxxxxxxx:
ERROR! Unexpected Exception, this is probably a bug: HTTP Error 400: Bad Request
to see the full traceback, use -vvv
Aug 28, 2020 in Ansible by akhtar
• 38,240 points
1,187 views

2 answers to this question.

0 votes

Hi@akhtar,

You will get this error if you are using the wrong credentials of GitHub. But there may be another reason behind this. You have to log in to the Ansible Galaxy portal first. Otherwise, it will not allow you to log in from command line. So login into the portal first and try once. It will work.

answered Aug 28, 2020 by MD
• 95,380 points
0 votes
When you get the 400 number, that would mean that the request was malformed. In other words, the data stream sent to the server didn't follow the rules which was sent by the client. The 400’s are precisely used to indicate that the JSON is not valid in some way, in a REST API with a JSON payload situation. According to this situation, the 400’s should be the same for both the situations but if you would assume that this were XML rather than JSOM, then in both scenarios the XML would not clear the validation of the scheme due to an improper element use which would be a bad request.
answered Feb 9 by Soham
• 9,670 points

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
2,065 views
+2 votes
1 answer
+1 vote
1 answer
0 votes
1 answer

No match for argument: ansible Error: Unable to find a match

Hi@akhtar, Ansible is not part of your RedHat ...READ MORE

answered Jul 28, 2020 in Ansible by MD
• 95,380 points
9,423 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP