code.pyret.org icon indicating copy to clipboard operation
code.pyret.org copied to clipboard

Student unable to open gdrive files

Open justinpombrio opened this issue 9 years ago • 9 comments

A student in cs173 is unable to open their gdrive files in CPO. They write:

When I try to open a file from my google drive, it says: "Sorry, we were unable to authorize this app for all of the files you attempted to open. Please try again." I've tried signing out and signing in, duplicating the file, clearing cookies, opening it in incognito mode, using another browser... none of these solutions worked. I created a new file in pyret (clicked "Start Coding"), saved it, then tried to open this new file. I still get the same error.

justinpombrio avatar Nov 11 '16 20:11 justinpombrio

Did they log out of Pyret? The most likely cause is a Pyret cookie that's referring to a different Google account.

jpolitz avatar Nov 11 '16 23:11 jpolitz

Jared, here's the github issue. Joe asks:

Did they log out of Pyret? The most likely cause is a Pyret cookie that's referring to a different Google account.

On 11 November 2016 at 18:14, Joe Politz [email protected] wrote:

Did they log out of Pyret? The most likely cause is a Pyret cookie that's referring to a different Google account.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/brownplt/code.pyret.org/issues/149#issuecomment-260077530, or mute the thread https://github.com/notifications/unsubscribe-auth/AAajArScdcQoKp3WglcPdZ6tj_Etr5TMks5q9PbzgaJpZM4KwHsI .

justinpombrio avatar Nov 12 '16 03:11 justinpombrio

The student says, "I've tried signing out and signing in, duplicating the file, clearing cookies, opening it in incognito mode, using another browser... none of these solutions worked."

He added, "I created a new file in pyret (clicked "Start Coding"), saved it, then tried to open this new file. I still get the same error."

shriram avatar Nov 13 '16 13:11 shriram

Another thing to check is if Pyret is listed as a connected app (in the student's account) at https://security.google.com/settings/security/permissions?pli=1

jpolitz avatar Nov 13 '16 14:11 jpolitz

I never logged out of pyret; after it stopped working I tried logging out and logging back in both out of pyret and google but that did not fix the issues. On code.pyret.org I cleared all data then logged in again but this did not fix it.

It can create and save files to my google drive, but then it is unable to open them.

It is unable to read files using "import _ from _" in the google drive either. image

It is listed as a connected app: image

The same error message that displays in pyret displays on google drive: image

screen shot 2016-11-13 at 12 05 58 pm

I tried revoking authorization, clearing site data, logging in again, reauthorized it to access google drive, then tried - this also did not fix the issue.

I also tried deleting the code.pyret.org folder, then saving a new program through pyret to create a new one, same issue.

jtsiskin avatar Nov 13 '16 17:11 jtsiskin

Thanks, this was really helpful. It looks like it may be an issue on Google's end:

https://productforums.google.com/forum/#!topic/apps/weFHNRWu5iw

I'll keep looking into it, but it may work to remove access to code.pyret.org on the Google permissions screen, and then re-log-in and re-authorize CPO.

Sorry for the annoyance; I've tried for a while to reproduce this and can't find a combination of login/account settings that give me the same error, so I can't say exactly what situation is causing this yet.

jpolitz avatar Nov 13 '16 19:11 jpolitz

I see you already tried my suggestion, and it didn't work, sorry.

Do you have another Google account you would be willing to try?

jpolitz avatar Nov 13 '16 19:11 jpolitz

Yes; to complete my assignment I logged in/authorized with a different google account and copy/pasted my code. It has been working without issue

jtsiskin avatar Nov 13 '16 19:11 jtsiskin

Ok to close?

schanzer avatar Mar 30 '18 22:03 schanzer

@blerner this issue is ancient, and overall GDrive opening seems to have been stable for quite some time. OK to close?

schanzer avatar Jan 11 '24 15:01 schanzer

Yeah; the recent GDrive weirdnesses (with files disappearing from some physics sims) seems to be unrelated, so we'll reopen this if it becomes reproducible...

blerner avatar Jan 11 '24 17:01 blerner