aaronpk/Google-Voice-PHP-API

Script stopped working: Could not parse for GALX or gxf token

Opened this issue · 2 comments

The script was working earlier but stopped.. It throws this error now.

An uncaught Exception was encountered
Type: Exception

Message: Could not parse for GALX or gxf token. Inputs from page: array ( )

Filename: /usr/share/nginx/html/application/libraries/Gv_lib.php

Line Number: 55

Backtrace:

File: /usr/share/nginx/html/application/libraries/Gv_lib.php
Line: 159
Function: _logIn

File: /usr/share/nginx/html/application/controllers/Notification.php
Line: 42
Function: sendSMS

File: /usr/share/nginx/html/index.php
Line: 292
Function: require_once

..It might have something to do with this:

curl https://accounts.google.com/signin/challenge/sl/password
<HTML>
<HEAD>
<TITLE>Moved Temporarily</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Moved Temporarily</H1>
The document has moved <A HREF="https://accounts.google.com/ServiceLogin">here</A>.
</BODY>
</HTML>

I've tried setting the post sign-in $URL to be: https://accounts.google.com/signin/v1/lookup to no avail.

i submitted a pull request to 'fix' this

hi jamenlang i have tried your code as well now it gets stuck on line 73 :
$html = curl_exec($this->_ch);
Flow location : After password is submitted to google & just before we call that "grandcenteral" url.
It now redirects to this error:
The browser that you're using doesn't support JavaScript, or has JavaScript turned off
And i guess it destroy the session created so after that line nothing works as expected.

Have u been able to fix it ?