Skip to content
This repository was archived by the owner on Jan 18, 2018. It is now read-only.

401 Token Refresh Error silently causes realtime connection to fail and edits are lost #6

Open
ruswerner opened this issue May 17, 2013 · 2 comments

Comments

@ruswerner
Copy link

If I open or create a realtime document, make changes, then leave the page open for about an hour I get the following errors on the console:

GET https://drive.google.com/otservice/bind?id=1foZRE7k3IRUxWnQaOHDrsN_OfSi3gjs…RID=rpc&SID=FFE129C546C61272&CI=0&AID=201&TYPE=xmlhttp&zx=f2rvegin3z1g&t=1 401 (Unauthorized) api:80
Drive Realtime API Error: token_refresh_required: The OAuth token must be refreshed. api:186

There is no error presented in the UI, or anywhere else. Then if I continue to make changes to the realtime data model they appear to be applied successfully (i.e. no errors and the changes show in the "Event Log" panel on the right). However, when I refresh the page and re-open the document, none of the changes I made after the previously mentioned error (401) occurred were actually saved.

This is a problem since data was silently lost without any indication in the UI. Can the app automatically re-authorize when a 401 occurs and still maintain the realtime connection to the data model? Is there an error/event which indicates when updates to the data model are not actually saved?

@eden-lane
Copy link

Got the same error in my app and I have no idea how I can catch it.

@johnrivelt
Copy link

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants