code.pyret.org
code.pyret.org copied to clipboard
Student unable to open gdrive files
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.
Did they log out of Pyret? The most likely cause is a Pyret cookie that's referring to a different Google account.
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 .
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."
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
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.

It is listed as a connected app:

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

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.
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.
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?
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
Ok to close?
@blerner this issue is ancient, and overall GDrive opening seems to have been stable for quite some time. OK to close?
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...