Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Credentials after switching networks #140

Open
matthias-johnson opened this issue Feb 13, 2017 · 2 comments
Open

Invalid Credentials after switching networks #140

matthias-johnson opened this issue Feb 13, 2017 · 2 comments

Comments

@matthias-johnson
Copy link

matthias-johnson commented Feb 13, 2017

If I sleep my laptop at work and go home, my open notebooks error Invalid Credentials. There is nothing at the shell that indicates what is wrong. I'm assuming it's an expired session??? If I go to the Notebook Home tab and press the home icon it will eventually reload my drive folder but running notebooks won't ever come back by just pressing save after restoring the browsability in the Home tab. If I refresh the page it will reconnect but I fear I think I lose any unsaved changes. I need to test that as I notice before I make changes and don't do any changes until the connection is reestablished. I'm not sure there is a fix for this but thought I would bring it up as no one has reported it from what I can see. I cannot recreate the issue by simply disabling my connection and re-enabling but perhaps it is because I do not wait long enough for the session to be invalid.
Jupyter 4.2.1
Ubuntu 16.04
Metadata-Version: 1.1
Name: jupyterdrive
Version: 1.1.0
Summary: Integration of IPython/Jupyter with Google drive
Home-page: https://github.com/jupyter/jupyter-drive

@matthias-johnson
Copy link
Author

matthias-johnson commented Feb 18, 2017

So I did a bit more investigation and I guess this all works as best as it can but it would be interesting to get some dev feedback on this. It is definitely a expired session issue, not sure what Google sets this as. What is interesting is it seems you need to take a few steps before you can get changes synced up again. First, upon reconnecting to the internet, you must go to the Home tab and press the home folder icon to re-establish a listing of your drive folder. If you just do this, it seems that the notebook you have open still will not notice that you have made changes since it last synced and cannot sync. Perhaps I am again not waiting long enough but it I have waited several minutes after restoring the folder listing in the Home tab. But, if you open the same notebook file as another tab from the Home tab, then the notebook with the expired session will realize it has unsaved changes and you are prompted to 'reload', 'cancel' or 'overwrite'. Ideally, if possible, there would be a heartbeat for the expired notebook would determine it is out of sync without reloading another instance of the notebook but perhaps that is not possible.

@ivanlen
Copy link

ivanlen commented Jun 5, 2018

I am experiencing the same issue but without running jupyterdrive.
I am having a server running in my server, and after changing from one network to another I am having the Invalid Credentials error.
It's funny that even though I lunched a new version of the server I am still having this error.

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

No branches or pull requests

2 participants