aws-google-auth failing after captcha with AttributeError
See original GitHub issueThis worked this morning, but has just started failing recently. Perhaps Google have changed something recently.
$ aws-google-auth -k -a --idp-id ****** --sp-id ****** -R eu-west-1 -u andrew@***** -p **** -d 28800
Please visit the following URL to view your CAPTCHA: https://accounts.google.com/Captcha?v=2&ctoken=AAWk9lTZPTWjw0H2qZslq_5iOYNMgwYAp4YyWclEZ7tcbNSygw1uwrJBsuHN1x5ixClImPWivlzxazufFjr9czxGPpP30RnFLxAPCLiWo0gM6zEkj_5KHTzdJaPyQrUZJaq8A4fxPPkeG3PQkNC40tpjKDWGjkPfAg
Captcha (case insensitive): plingsmsp
ERROR:root:'NoneType' object has no attribute 'find_all'
Traceback (most recent call last):
File "/Users/andrewlongwill/.pyenv/versions/3.9.10/envs/aws-google-auth-3.9.10/lib/python3.9/site-packages/aws_google_auth/__init__.py", line 79, in cli
process_auth(args, config)
File "/Users/andrewlongwill/.pyenv/versions/3.9.10/envs/aws-google-auth-3.9.10/lib/python3.9/site-packages/aws_google_auth/__init__.py", line 243, in process_auth
google_client.do_login()
File "/Users/andrewlongwill/.pyenv/versions/3.9.10/envs/aws-google-auth-3.9.10/lib/python3.9/site-packages/aws_google_auth/google.py", line 291, in do_login
sess = self.handle_captcha(sess, payload)
File "/Users/andrewlongwill/.pyenv/versions/3.9.10/envs/aws-google-auth-3.9.10/lib/python3.9/site-packages/aws_google_auth/google.py", line 432, in handle_captcha
for tag in form.find_all('input'):
AttributeError: 'NoneType' object has no attribute 'find_all'
versions
python --version
Python 3.9.10
pip list ─╯
Package Version
--------------------- -----------
aws-google-auth 0.0.37
beautifulsoup4 4.10.0
boto3 1.20.51
botocore 1.23.51
certifi 2021.10.8
charset-normalizer 2.0.11
configparser 5.2.0
filelock 3.4.2
idna 3.3
importlib-metadata 4.10.1
jmespath 0.10.0
keyring 23.5.0
keyrings.alt 4.1.0
lxml 4.7.1
Pillow 9.0.1
pip 22.0.4
python-dateutil 2.8.2
pytz-deprecation-shim 0.1.0.post0
requests 2.27.1
s3transfer 0.5.1
setuptools 58.1.0
six 1.16.0
soupsieve 2.3.1
tabulate 0.8.9
tzdata 2021.5
tzlocal 4.1
urllib3 1.26.8
zipp 3.7.0
Issue Analytics
- State:
- Created a year ago
- Reactions:38
- Comments:22 (1 by maintainers)
Top Results From Across the Web
AttributeError: 'NoneType' object has no attribute 'get' #219
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...
Read more >cevoaustralia - Bountysource
Captcha fails to display since location of Preview.app has moved $ 0. Created 2 years ago in cevoaustralia/aws-google-auth with 0 comments. Following error ......
Read more >Resolve Captcha errors with AWS
I can't complete the CAPTCHA when signing in to an existing account or when activating a new AWS account. Resolution. Try the following:...
Read more >aws-google-auth - PyPI
This command-line tool allows you to acquire AWS temporary (STS) credentials using Google Apps as a federated (Single Sign-On, or SSO) provider.
Read more >AWS Glue jobs failing due: google-auth version 2.0.0.dev0 is ...
eggs on AWS Glue to be able to run smart_open. There is a new version of google-auth 1.33.0 since 20th of July 2021,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Simple fix based on the PR #250 -
Edit this file site-packages/aws_google_auth/google.py, and add those code lines in line 268 -
You can take the absolute path from the error above in your machine -
“/home/bityob/.local/lib/python3.8/site-packages/aws_google_auth/google.py”
Example -
If you installed aws-google-auth via homebrew, you can directly replace the file mentioned in the error above with the one from the PR. My path was different than the one above so use the path in the error. Url to file from PR: https://github.com/ezequielsbarros/aws-google-auth/blob/d7d70010bac0494a5902e92a3bd7e124611cd6c1/aws_google_auth/google.py