maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] The One Ring (https://talk.maemo.org/showthread.php?t=41817)

glabifrons 2013-07-06 14:05

Re: [Announce] The One Ring
 
Quote:

Originally Posted by Xenolith0 (Post 1319279)
For the last 5 or so days TOR has been unable to connect to GV. After researching the problem, I found what has changed is Google's login URL. Which previously was "https://www.google.com/accounts/ServiceLoginAuth" and has now changed to be "https://accounts.google.com/ServiceLoginAuth".

Until the developer updates his package, a quick work-around to this is to edit the file "/opt/theonering/lib/gvoice/backend.py" go to line 169 and change:
self._loginURL = "https://www.google.com/accounts/ServiceLoginAuth"
to
self._loginURL = "https://accounts.google.com/ServiceLoginAuth"

After that just initiate a reconnect, and it should work.... Assuming anyone else is having this issue. After searching the forums I have not seen anyone else reporting this problem, so maybe Google only hates me.

However, this is why I LOVE open source software. <3 Maemo.

theonering.log:
Code:

(2013-01-30 16:49:56,405) DEBUG AsyncPool.gvoice.browser_emu: Performing download of https://www.google.com/voice/m
(2013-01-30 16:49:57,410) DEBUG AsyncPool.gvoice.browser_emu: Performing download of https://www.google.com/accounts/ServiceLoginAuth
(2013-01-30 16:49:58,586) DEBUG AsyncPool.gvoice.browser_emu: HTTP Error 404: Not Found: https://www.google.com/accounts/ServiceLoginAuth
(2013-01-30 16:49:58,591) DEBUG AsyncPool.gvoice.browser_emu: MozillaEmulator: urllib2.URLError, retrying 1
(2013-01-30 16:49:59,058) DEBUG AsyncPool.gvoice.browser_emu: HTTP Error 404: Not Found: https://www.google.com/accounts/ServiceLoginAuth
(2013-01-30 16:49:59,119) ERROR AsyncPool.gvoice.backend: Translating error: HTTP Error 404: Not Found
(2013-01-30 16:49:59,159) ERROR AsyncPool.util.go_utils: Error, passing it back to the main thread
Traceback (most recent call last):
  File "/opt/theonering/lib/util/go_utils.py", line 191, in __consume_queue
    result = func(*args, **kwds)
  File "/opt/theonering/lib/gvoice/backend.py", line 294, in login
    loginSuccessOrFailurePage = self._login(username, password, galxToken)
  File "/opt/theonering/lib/gvoice/backend.py", line 283, in _login
    loginSuccessOrFailurePage = self._get_page(self._loginURL, loginData)
  File "/opt/theonering/lib/gvoice/backend.py", line 779, in _get_page
    raise NetworkError("%s is not accesible" % url)
NetworkError: https://www.google.com/accounts/ServiceLoginAuth is not accesible
(2013-01-30 16:49:59,171) ERROR MainThread.connection: https://www.google.com/accounts/ServiceLoginAuth is not accesible
(2013-01-30 16:49:59,175) INFO  MainThread.connection: Disconnecting


Thank you sooo much for this! It's been driving me nuts for a while.
I was having trouble finding it because I was searching for the old(?)/alternate name (which is still the title in the application manager) Google Voice Plugin for Conversations and Calls and the error: network error
Hopefully the above line will be enough search-engine-bait that others frustrated with this months-old bug can also fix it for themselves.

Again, thank you very much for this embarrassingly simple fix. :)

iCoding 2013-11-09 05:18

Re: [Announce] The One Ring
 
Quote:

Originally Posted by xur17 (Post 756318)
When I tried entering the url into my browser (with my useragent set as an iphone), I got that same response. I managed to get a correct response when I used the live http headers extension for firefox, and replayed a recording of dialing the number using the iphone web app.

The post content listed in the Live HTTP Headers extension is:

Code:

{"gvx":"random-letters-and-numbers-here:thirteennumbershere"}
EDIT: I figured out what the post data is. This is the content of the cookie named gvx.

Were you submitting the url as a post request, or a get request?

I can attach the Live HTTP Headers file if that would be helpful.

I'm trying to get the Direct Access Number from iOS contact list. I was able to get the gvx cookie but it's just some random letter numbers and 13 numbers like this

gvx=Gq2TyFXex-LgnMt9YR6Fc9wPl3o:1273448429000;

Where does it say the Direct Access Number? The 13 numbers is not the access number of the destination number in the query string.

I'm building this for iOS. Any help is greatly appreciated.

iCoding 2013-11-11 16:03

Re: [Announce] The One Ring
 
Quote:

Originally Posted by iCoding (Post 1385241)
I'm trying to get the Direct Access Number from iOS contact list. I was able to get the gvx cookie but it's just some random letter numbers and 13 numbers like this

gvx=Gq2TyFXex-LgnMt9YR6Fc9wPl3o:1273448429000;

Where does it say the Direct Access Number? The 13 numbers is not the access number of the destination number in the query string.

I'm building this for iOS. Any help is greatly appreciated.

Anyone still following this thread?

uvatbc 2013-11-11 16:07

Re: [Announce] The One Ring
 
Quote:

Originally Posted by iCoding (Post 1385241)
I'm trying to get the Direct Access Number from iOS contact list. I was able to get the gvx cookie but it's just some random letter numbers and 13 numbers like this

gvx=Gq2TyFXex-LgnMt9YR6Fc9wPl3o:1273448429000;

Where does it say the Direct Access Number? The 13 numbers is not the access number of the destination number in the query string.

I'm building this for iOS. Any help is greatly appreciated.

I didn't understand your question but maybe just pointing you to my implementation will help...

iCoding 2013-11-14 05:06

Re: [Announce] The One Ring
 
Quote:

Originally Posted by uvatbc (Post 1385639)
I didn't understand your question but maybe just pointing you to my implementation will help...

I can successfully log in Google Voice web service via this URL by passing the necessary parameters.

Code:

https://accounts.google.com/ServiceLogin?service=grandcentral
However, when I list out all the cookies in the Cookie Storage. I don't get all the cookies that I should have logging in Google Voice.

Objective-C code:

Code:

NSHTTPCookie *cookie;
    NSHTTPCookieStorage *cookieJar = [NSHTTPCookieStorage sharedHTTPCookieStorage];
    for (cookie in [cookieJar cookies]) {
        NSLog(@"%@", cookie);
    }

All i got back from cookies are 3 names:

Code:

GALX - with some random characters and numbers value
GAPS - with some random characters and numbers value
S - with value: "grandcentral=xxxxxx..xxxx"

I should get back a lot more in Cookies such as:

HSID, SSID, APISID, PREF, NID And most importantly gvx cookie.

I did set User-agent to iPhone in the request header. How do I get gvx cookie?

iCoding 2013-11-19 18:21

Re: [Announce] The One Ring
 
anyone knows why I'm not getting back to gvx cookie but just the GALX, GAPS and S cookies from google voice? Here is the url string for my post request

https://accounts.google.com/ServiceL...signIn=Sign+in

script.ninja 2013-12-11 16:27

Re: [Announce] The One Ring
 
Quote:

Originally Posted by Xenolith0 (Post 1319279)
For the last 5 or so days TOR has been unable to connect to GV. After researching the problem, I found what has changed is Google's login URL. Which previously was "https://www.google.com/accounts/ServiceLoginAuth" and has now changed to be "https://accounts.google.com/ServiceLoginAuth".

Until the developer updates his package, a quick work-around to this is to edit the file "/opt/theonering/lib/gvoice/backend.py" go to line 169 and change:
self._loginURL = "https://www.google.com/accounts/ServiceLoginAuth"
to
self._loginURL = "https://accounts.google.com/ServiceLoginAuth"

After that just initiate a reconnect, and it should work.... Assuming anyone else is having this issue. After searching the forums I have not seen anyone else reporting this problem, so maybe Google only hates me.

However, this is why I LOVE open source software. <3 Maemo.


Amen to that, brother. Especially convenient in this case that it doesn't involve rebuilding or anything.

I hadn't reported the issue because I thought it was for the same reason that some of my google talk accounts keep refusing to connect sometimes.

Thanks an enormous amount for posting this...I just finally got around to fixing mine.

sondjata 2015-02-20 04:14

Re: [Announce] The One Ring
 
Looks like it's down again....smh

Wikiwide 2015-04-01 20:15

Re: [Announce] The One Ring
 
Okay, by the Xenolith0's workaround

Quote:

Until the developer updates his package, a quick work-around to this is to edit the file "/opt/theonering/lib/gvoice/backend.py" go to line 169 and change:
self._loginURL = "https://www.google.com/accounts/ServiceLoginAuth"
to
self._loginURL = "https://accounts.google.com/ServiceLoginAuth"
I managed to sign in. Now, how do I check if it works or not? Some kind of echo-test-service would be welcome, especially for SMS...

P.S. I do not know why theonering has to depend on haze and pull in so many packages...

P.P.S. An alternative to Google Voice would be welcome, just for the sake of anti-monopoly. For example, if number@sip.voice.google.com worked, I would have just SIP-ed to GV (GV-to-SIP already works, thanks to IPKall).

Thank you. Best wishes.

deanrc 2015-05-12 20:37

Re: [Announce] The One Ring
 
Quote:

Originally Posted by Wikiwide (Post 1465572)
Okay, by the Xenolith0's workaround

Yeah, that workaround has always worked for me, but for the last two weeks or so I haven't been able to sign in.

Am I the only one?


All times are GMT. The time now is 23:55.

vBulletin® Version 3.8.8