You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if a google drive file is not publicly available, the request gets forwarded to a request access page with a 200 status code. This tricks the download code into thinking things are ok, and the code saves a file (at least currently) called uc with the contents of the page, which hopefully will cause any remaining steps to fail based on the file format. If not things could get messy.
Hopefully this doesn't happen too often, as most people will get the link from google drive directly, which means they have access.
The google download code should be replaced to avoid using direct links if possible, since Google thinks they're coming from a browser.
Investigate the google drive python library.
The text was updated successfully, but these errors were encountered:
MrCreosote
changed the title
Handle inaccesisble Google Drive files sensibly
Handle inaccessible Google Drive files sensibly
Mar 12, 2024
Currently, if a google drive file is not publicly available, the request gets forwarded to a request access page with a 200 status code. This tricks the download code into thinking things are ok, and the code saves a file (at least currently) called
uc
with the contents of the page, which hopefully will cause any remaining steps to fail based on the file format. If not things could get messy.Hopefully this doesn't happen too often, as most people will get the link from google drive directly, which means they have access.
The google download code should be replaced to avoid using direct links if possible, since Google thinks they're coming from a browser.
Investigate the google drive python library.
The text was updated successfully, but these errors were encountered: