Profile cover photo
Profile photo
Jay Meistrich
152 followers
152 followers
About
Communities and Collections
View all
Posts

Post has attachment

Post has attachment
PhotoPhotoPhotoPhotoPhoto
Favorite Travel Photos
21 Photos - View album

Post has attachment

Post has attachment
PhotoPhotoPhotoPhotoPhoto
An Island Full of Bunnies
38 Photos - View album

Post has attachment
PhotoPhotoPhotoPhotoPhoto
Singapore Aquarium
24 Photos - View album

What is the best way to deal with the token_refresh_required error on the realtime api? If we refresh before the authorization expires, everything works fine, but if we get the token_refresh_required error and then successfully refresh the oath token and set it using gapi.auth.setToken, the document seems to no longer be connected. isFatal on the error is false which the docs suggest means we don't need to reload the document. But the document is no longer connected - setting values doesn't send out network requests and there are no incoming network requests from other clients. 

This is the callstack:
GET https://drive.google.com/otservice/bind?id=1KT5N5oDIxJnYXQzliZdSbsbFVV7Gc8G…RID=rpc&SID=FD4CD05B996ABE90&CI=0&AID=204&TYPE=xmlhttp&zx=2d0w06unenre&t=1 401 (Unauthorized) api:81
Drive Realtime API Error: token_refresh_required: The OAuth token must be refreshed. api:191
onDocLoadError:  Gg {type: "token_refresh_required", message: "The OAuth token must be refreshed.", a: false, isFatal: false} 

Thanks for the help. Is this the right place to post technical questions like this or is somewhere else better?

Hi, I talked to Cheryl Simon and Brian Cairns at Google I/O last week. I'm using the realtime api in my app and am experiencing 3-4s load time with about 1s due to api loading and auth and 2-3s just for the file from Drive. Cheryl suggested I post here. Here are screenshots of what it looks like in Timeline and Network from the dev tools.
http://cl.ly/image/2v2Z0n3g310N
http://cl.ly/image/1l1t3118173g

And here's a link to the code (although it won't authorize because of an origin_mismatch on dropbox):
https://dl.dropboxusercontent.com/u/29646803/testgdrive/testgdrive.html

Am I doing something wrong or are other people seeing this too?

Post has attachment
PhotoPhotoPhotoPhotoPhoto
Bruce
29 Photos - View album

Post has shared content
iPhone 5!
I don't want a 5" display device with awesome specs. I want a 4/4.3" display device with awesome specs.

Post has attachment
PhotoPhotoPhotoPhotoPhoto
Madrid (24 photos)
24 Photos - View album
Wait while more posts are being loaded