pygooglevoice icon indicating copy to clipboard operation
pygooglevoice copied to clipboard

Fix Login crash (May 2017). Add USER_AGENT setting.

Open chris001 opened this issue 8 years ago • 13 comments

  • Fix the latest Login crash of May 2017 from #27 and #36
  • Add USER_AGENT setting, defaults to Firefox. Requested in #32

chris001 avatar May 22 '17 05:05 chris001

Using EspaceNetworks:master, I still can't login.

Geremia avatar Jun 06 '17 21:06 Geremia

@Geremia What's the full text of the error message?

chris001 avatar Jun 06 '17 22:06 chris001

@chris001 Here's the output (email address changed to preserve my identity):

$ gvoice
DEBUG:PyGoogleVoice:e.com/ServiceLogin?continue=https://www.google.com/voice&rip=1&nojavascript=1&followup=https://www.google.com/voice&service=grandcentral&ltmpl=open&flowName=GlifWebSignIn&flowEntry=Identifier? - {'Content-type': 'application/x-www-form-urlencoded;charset=utf-8', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36'}
DEBUG:PyGoogleVoice:e.com/signin/challenge/sl/password?service=grandcentral&continue=https://www.google.com/voice/redirection/voice&followup=https://www.google.com/voice&ltmpl=open?Passwd=thdhcvozwixhajhc&gxf=AFoagUW1t6SRtgwASz5_kFsfbXI4q_iPcA%3A1496856471083&GALX=R6lgnq15e34&Email=myemail%40gmail.com - {'Content-type': 'application/x-www-form-urlencoded;charset=utf-8', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36'}
Login failed. Retry?[Y/n] 

I used an app password generated by Google.

Anything other logs I can report?

Geremia avatar Jun 07 '17 17:06 Geremia

This app was made before app passwords existed. It can currently sign in using your real password. I agree the app password would be a much more secure way to sign in, and it (probably) should work to sign in. Looking into it now.

chris001 avatar Jun 07 '17 20:06 chris001

@Geremia What happens when you try to sign in on the web with your app password instead of your G account password. Does it work?

chris001 avatar Jun 09 '17 00:06 chris001

@chris001 The issue was that I cannot have 2-factor authentication enabled and I must use the master password for the Google account. Is that expected?

Geremia avatar Jun 09 '17 01:06 Geremia

@Geremia It definitely works with the G account password. There's also a feature for SMS code (2-factor authorization) which I haven't tested - it used to work, maybe it still does. Let me ask you - What happens when you try to sign in on the web site with your app password. Does login on the website work with your app password?

chris001 avatar Jun 09 '17 01:06 chris001

@chris001 As far as I can tell, logging into the website with an app password does not work.

iannesbitt avatar Jun 19 '17 14:06 iannesbitt

@iannesbitt @Geremia I suspect the App password works only when logging into the various G APIs for software, such as IMAP, POP3, SMTP, G Maps Geocoding, G Maps, etc. However we're using HTTP to communicate with GVoice as a real user with a browser would, so I think the Account password is the only one accepted by the web browser. Would be nice to get the App password to work. If you have any ideas to try, please share.

chris001 avatar Jun 19 '17 17:06 chris001

I may have missed this but is there a way to make the account password work with 2-step auth enabled?

iannesbitt avatar Jun 20 '17 17:06 iannesbitt

@iannesbitt When you try to login with 2-step auth enabled on your G account, does it give you an error message? What does the error message say?

chris001 avatar Jun 21 '17 06:06 chris001

@chris001 Using credentials entered live or from ~/.gvoice I just get the standard login failed message: Login failed. Retry?[Y/n]

Perhaps I am missing a way to increase verbosity?

iannesbitt avatar Jun 21 '17 17:06 iannesbitt

@iannesbitt The two-step auth is broken, and appears to need rewriting, in light of the major new version of GVoice.

Now is as good time as any to announce that I invite a everyone who is using this software and enjoying my recent bug fixes and feature additions, to visit my gofundme page, where anyone who is interested in supporting my serious efforts to fix and develop this software further, can make a contribution to help cover my running costs.

Thank you to everyone who will support. It's because of you that I can do this and make this software work again!

https://www.gofundme.com/espacenetworks-pygooglevoice

chris001 avatar Jun 22 '17 22:06 chris001