anvil.server.InternalError: Google request failed: File not found:

What I’m trying to do:
Access previously accessible folder in my google drive

Context: I have an existing nested folder in my Google Drive that I’ve been using for some time. After updating my Google password, I can still access and create files in all other folders without any problems. However, when I attempt to create a file inside this particular nested folder, I encounter the following error:

anvil.server.InternalError: Google request failed: File not found: 1J1aMFjmxoKDzpheYP1E2r1euizIqjsdh

It seems that this specific folder, which was previously accessible, is no longer reachable by the application after the password change, even though it remains accessible through the code autocomplete and listed in my accessible google drive folders & files.

I would greatly appreciate any guidance on how to restore access or resolve this issue.

Any idea how to solve this issue?

Could you share a code snippet or a clone link with your Google drive creds stripped out? There’s a variety of things that could be at issue here, but it’s impossible to know what without more context.

Re-authenticate the app with Google Drive and make sure the permissions are good on the folder. Verify that the folder ID you are using in the code is the same one you’re using for the folder ID. Let me know if this helps!

The folder still appears in autocomplete (see the first screenshot below).

However, when I try accessing the same folder from another app, it doesn’t work. As far as I know, Anvil doesn’t allow you to access folders unless you created them (please correct me if I’m wrong).


Meanwhile, I also can’t create a nested folder. I’m not even sure how I managed to create this one in the past! :astonished: (Any folder created using the window below ends up in the root directory.)

I’ve already done that, and all the other root folders are functioning without any issues. However, this specific nested folder is not working. I’m unsure how to specify the folder ID since I’m accessing the folder directly via app_files.xxx.create_file()