Ask questionsERROR:root:'NoneType' object has no attribute 'get'


I think I ran into an additional google response than #52 #3 #90 .

I run aws-agoogle-auth from within an EC2 instance, that is my "workstation" and I get this. At the same time with the same google password aws-google-auth works from my laptop

ERROR:root:'NoneType' object has no attribute 'get'
Traceback (most recent call last):        
  File "/usr/local/lib/python2.7/dist-packages/aws_google_auth/", line 72, in cli
    process_auth(args, config)
  File "/usr/local/lib/python2.7/dist-packages/aws_google_auth/", line 212, in process_auth
  File "/usr/local/lib/python2.7/dist-packages/aws_google_auth/", line 294, in do_login
    sess = self.handle_prompt(sess)
  File "/usr/local/lib/python2.7/dist-packages/aws_google_auth/", line 542, in handle_prompt
    'data-api-key': True
AttributeError: 'NoneType' object has no attribute 'get'
  1. added a print(sess.url) at
  2. added a print(response_page) at

The sess url was (I replaced the IDs with "123123")

And the response from google aws-google-auth

I then used SOCKS/Firefox, opened the page using my EC2 instance as a proxy and completed the verification process.

After I completed the verification process, I could use aws-google-auth as expected. I managed to find the solution to the problem but the issue was quite obscure and debugging required quite a lot of effort (for example I first tried to find out if my python/pip setup matched my laptop's one). I am not sure if aws-google-auth can handle the phone verification from the command line. An improvement would be to show a more informative message to the user and provide the html verification page without a lot of fuzz.


Answer questions vkatsikaros

Thanks @stevemac007 I hadn't noticed!


Related questions

Can not find any timezone information hot 1
Github User Rank List