Google-Voice-PHP-API icon indicating copy to clipboard operation
Google-Voice-PHP-API copied to clipboard

"May need to change scraping" Error

Open DavidBerdik opened this issue 6 years ago • 11 comments

This morning, I started receiving the following error when trying to use this API with my texting script. For privacy, I have stripped out some parts of the error, marking them as "<REDACTED>." Note that the "Passwd" entry in the array is empty, and not marked, meaning that the password was never even received (read: I did not remove the password and forget to mark having done so when posting this. It was never there.). Has anyone else started seeing this as well?

Could not log in to Google Voice with username: <REDACTED>

May need to change scraping.  Here are the inputs from the page:
array (
  'Page' => 'PasswordSeparationSignIn',
  '' => '',
  'gxf' => '<REDACTED>',
  'continue' => 'https://www.google.com/voice/b/0/redirection/voice',
  'followup' => 'https://www.google.com/voice/b/0/redirection/voice',
  'service' => 'grandcentral',
  'flowName' => 'GlifWebSignIn',
  'ProfileInformation' => '<REDACTED>',
  'SessionState' => '<REDACTED>',
  '_utf8' => '☃',
  'bgresponse' => 'js_disabled',
  'Email' => '<REDACTED>',
  'Passwd' => '',
  'logintoken' => '<REDACTED>',
  'url' => '<REDACTED>',
  'logintoken_audio' => '<REDACTED>',
  'url_audio' => '<REDACTED>',
  'logincaptcha' => '',
  'signIn' => 'Sign in',
  'PersistentCookie' => 'yes',
)
PHP Fatal error:  Uncaught Exception: Could not log in to Google Voice with username: <REDACTED>
Look at error log for detailed input information.
 in /home/<REDACTED>/Desktop/<REDACTED>/GoogleVoice.php:75
Stack trace:
#0 /home/<REDACTED>/Desktop/<REDACTED>/GoogleVoice.php(160): GoogleVoice->_logIn()
#1 /home/<REDACTED>/Desktop/<REDACTED>/texter.php(6): GoogleVoice->sendSMS('<REDACTED>', '<REDACTED>')
#2 {main}
  thrown in /home/<REDACTED>/Desktop/<REDACTED>/GoogleVoice.php on line 75

DavidBerdik avatar Sep 15 '18 18:09 DavidBerdik

Did you managed to solve it ?

programmer007007 avatar Jan 19 '19 20:01 programmer007007

I did not myself, but I found a forked version that has resolved it: https://github.com/jamenlang/Google-Voice-PHP-API

DavidBerdik avatar Jan 19 '19 20:01 DavidBerdik

Yup even i tried his version but it doesn't seem to work anymore from last few weeks ? . is it still working for you ?

programmer007007 avatar Jan 19 '19 20:01 programmer007007

I just tested it and it is indeed working for me. Check that Google is not blocking the sign-in attempt. I have seen that happen before.

DavidBerdik avatar Jan 19 '19 20:01 DavidBerdik

strange . i debugged the curl code & its showing me JavaScript disable error & logging out on further calls .

programmer007007 avatar Jan 19 '19 21:01 programmer007007

And unlike before it doesn't shows that blocked login attempt and ask to authenticate it. so it seems like its stuck on this JavaScript error .

programmer007007 avatar Jan 19 '19 21:01 programmer007007

What is the error?

DavidBerdik avatar Jan 19 '19 21:01 DavidBerdik

This is the error that i am receiving and it seems like googles function is doing its jobs as it should. :smiling_imp: https://www.zdnet.com/article/google-wont-let-you-sign-in-if-you-disabled-javascript-in-your-browser/

Now i am in search of what cookies it sets to check this JavaScript status of a browser.

programmer007007 avatar Jan 19 '19 22:01 programmer007007

That's kind of odd though. Did you make any code changes?

DavidBerdik avatar Jan 19 '19 22:01 DavidBerdik

nope but yes i did changed my recovery address recently & it seems like it picks up the new policy & applies it to you account i guess this is the new way of google through which they are slowly but forcefully migrating people to the their crappy newer version of every product.

programmer007007 avatar Jan 19 '19 22:01 programmer007007

I actually was not aware that they were making such a change.

DavidBerdik avatar Jan 19 '19 22:01 DavidBerdik