aws-google-auth: Intermittent 'ProfileInformation' error when logging in
We have been successfully using aws-google-auth for months and it’s been great. Starting Monday 2/24 we started Intermittently seeing the error below. I disabled 2fa on my GSuite account but it did not help. Is anyone else seeing this?
$ aws-google-auth -d 43200 -ak
ERROR:root:'NoneType' object has no attribute 'get'
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/aws_google_auth/__init__.py", line 73, in cli
process_auth(args, config)
File "/usr/local/lib/python3.7/site-packages/aws_google_auth/__init__.py", line 218, in process_auth
google_client.do_login()
File "/usr/local/lib/python3.7/site-packages/aws_google_auth/google.py", line 228, in do_login
'name': 'ProfileInformation'
AttributeError: 'NoneType' object has no attribute 'get'
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 52
- Comments: 37 (7 by maintainers)
Commits related to this issue
- Fixes for new google login page (issue #164) — committed to cevoaustralia/aws-google-auth by nonspecialist 4 years ago
I have a fix for this that I’m just validating now … it’s worked for me on the “new” page, I’m just cleaning it up before pushing
@JorgenSmith The problem comes from Google returning a different login page on some requests (as @celliott points out), the html source of which does not contain the information that
aws-google-authis looking for.We’re taking a look at this at the moment.
0.0.34 is live on pypi now and supports the new login form – go give it a whirl
I’m still seeing this error on version 0.0.34
$ aws-google-auth -V aws-google-auth 0.0.34
$ aws-google-auth Google Password: ERROR:root:‘NoneType’ object has no attribute ‘get’ Traceback (most recent call last): File “/Library/Python/3.7/site-packages/aws_google_auth/init.py”, line 75, in cli process_auth(args, config) File “/Library/Python/3.7/site-packages/aws_google_auth/init.py”, line 222, in process_auth google_client.do_login() File “/Library/Python/3.7/site-packages/aws_google_auth/google.py”, line 235, in do_login passwd_challenge_url = ‘https://accounts.google.com’ + form.get(‘action’) AttributeError: ‘NoneType’ object has no attribute ‘get’
Is there any solution, how to resolve this it? The same issue:
aws-google-auth -I ******* -S xxxxxxx -d 28800 -p lmg -R ****** -uuser@email.com -k -l debug
I`ve tried with deferent OS:
CentOS v8; Python 3.6.8; pip 21.3.1; aws-google-auth 0.0.37; aws-cli/2.5.4 "Debian GNU/Linux 11; Python 3.9.2; pip 22.0.4; aws-google-auth 0.0.37; aws-cli/2.5.4 The same result 1:1
@celliott I’ll PR it into
homebrew-corenowHave the same problem now: Happens when I allow sign-in on my smartphone
I’m also seeing this issue ERROR:root:‘NoneType’ object has no attribute ‘get’ Traceback (most recent call last): File “/usr/local/Cellar/aws-google-auth/0.0.36_1/libexec/lib/python3.9/site-packages/aws_google_auth/init.py”, line 78, in cli process_auth(args, config) File “/usr/local/Cellar/aws-google-auth/0.0.36_1/libexec/lib/python3.9/site-packages/aws_google_auth/init.py”, line 242, in process_auth google_client.do_login() File “/usr/local/Cellar/aws-google-auth/0.0.36_1/libexec/lib/python3.9/site-packages/aws_google_auth/google.py”, line 235, in do_login passwd_challenge_url = ‘https://accounts.google.com’ + form.get(‘action’) AttributeError: ‘NoneType’ object has no attribute ‘get’
came for this exact issue, fix is working well for me. Thanks!
https://github.com/Homebrew/homebrew-core/pull/50785 📦
It has definitely been intermittent for us. Not all users are affected either. My gut is saying that it related to google bot protection for saml endpoints but I’m not sure how to debug and pinpoint yet. Any help would be appreciated.
May be related to https://github.com/cevoaustralia/aws-google-auth/issues/160
I’m seeing the same problem
I still have problem after update, the error page always says that my password was wrong but in fact it’s correct
Error page