Closed barche closed 7 years ago
Hi @barche, I am adding a better error message for this case in the next release (I agree that the lack of proper error messages here is a problem!), though that does not help your case right now. A couple of things to note:
sed
? That trick is a temporary workaround for a server-side setting of the ID, which is no longer necessary in master, and will be in the next release.Thanks, I realised in the mean time that the script URL was not set properly in the Google Dev Console, after that I got further, but clicking "Sign In" resulted in an invalid scope error, probably because all of the Drive permissions are needed for now. I don't know how to use the settings editor actually, I can't seem to save the file somehow, but the sed trick seems to work for now.
Glad to hear it.
The settings editor is a bit tricky, basically you need to enter valid JSON, then a checkmark will appear which allows you to save changes. So it would look something like this:
{
"clientId": "yourClientIdHere"
}
When you click sign-in there should be a popup box from Google asking for permissions. If there was not, perhaps a popup blocker was preventing it?
Aha, thanks for the tip regarding the settings editor, it does indeed work. With the popup, I get a warning that the app hasn't been reviewed by Google, presumably because complete drive access is requested, but that's already covered in issue #8. I also tried with older credentials for the same site (JuliaBox install instead of JupyterHub) and there the warning doesn't appear, so this requirement for manual review seems a recent thing.
I am not sure that I have seen that specific popup. Does the app work after the warning?
Yes, after overriding the warning. I think this only appears if the application registered in the development console is new enough. And reverting to drive.file permission also prevents it.
Interesting, thanks for the info. Is this issue solved, then?
Yes it is!
JupyterLab v0.26
has landed, with the ability to have server-side settings, so the sed
trick should be less necessary.
Hi,
Trying this on our local JupyterHub server (using DockerSpawner) doesn't seem to work, it just shows the GoogleDrive logo without any "sign in" button. The container logs show no errors:
I also updated the API key according to https://github.com/jupyterlab/jupyterlab-google-drive/issues/7#issuecomment-306992372.
Is there a way to get more info to debug this?