Fix Login crash (May 2017). Add USER_AGENT setting.
- Fix the latest Login crash of May 2017 from #27 and #36
- Add USER_AGENT setting, defaults to Firefox. Requested in #32
Using EspaceNetworks:master, I still can't login.
@Geremia What's the full text of the error message?
@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<mpl=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<mpl=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?
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.
@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 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 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 As far as I can tell, logging into the website with an app password does not work.
@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.
I may have missed this but is there a way to make the account password work with 2-step auth enabled?
@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
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 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