aws-google-auth: AttributeError: 'NoneType' object has no attribute 'get'
I’m getting this error after I tap yes on my phone to allow the access
➜ aws-google-auth -S 115297745755 -I C02x4yyeb -p default -a --no-cache -u MY_EMAIL
AWS Region: us-west-2
Google Password:
Please visit the following URL to view your CAPTCHA: https://accounts.google.com/Captcha?v=2&ctoken=AAWk9lSGYtUyQjvELZ8fqND_7rJZEuFhLmcERBbgw1kjyEhmvqHBxbigHlUDhwikBUAi1nSp7ftByXuucicqSQLKBXgYhlLlPr4rC4gGt4WXkzctiFolbN0j7Tdsv2JyGmTwA9rYEoNCbzwUsWlaHg96AghiucmjuIZ8jVtRw4RzCI4yvboHpMF0NHcYJj6VlaxnoBZlnvlK
Captcha (case insensitive): cubscrout
Open the Google App, and tap 'Yes' on the prompt to sign in ...
ERROR:root:'NoneType' object has no attribute 'get'
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aws_google_auth/__init__.py", line 79, in cli
process_auth(args, config)
File "/usr/local/lib/python3.9/site-packages/aws_google_auth/__init__.py", line 243, in process_auth
google_client.do_login()
File "/usr/local/lib/python3.9/site-packages/aws_google_auth/google.py", line 325, in do_login
sess = self.handle_prompt(sess)
File "/usr/local/lib/python3.9/site-packages/aws_google_auth/google.py", line 626, in handle_prompt
response_page.find('input', {
AttributeError: 'NoneType' object has no attribute 'get'
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 18
- Comments: 17
Like mentioned in other issues, did you tried:
aws-google-auth --bg-response js_enabled?For debugging purpose, also add the following arguments:
--save-failure-html -l debugThanks, it worked for me
Update to
aws-google-auth v0.0.38, at least that’s what worked for me.Hello,
I am getting the same error using: chip: intel macos: 12.3 python: 3.9 or 3.6
I am printing the HTML page that the tool processes to retrieve the challengeId:
@Wingjam Thanks so much. That was it.
Workaround, login with version
0.0.36using dockerSame issue with:
0.0.37(installed via brew)3.9.111.2.1