Anvil app server error with Google Drive access

What I’m trying to do:
Trying out the Anvil App Server (AAS) with a small Anvil app that accesses a file on an Google Drive.
In the Anvil IDE everything works fine.

What I’ve tried and what’s not working:
With AAS I get this error:

InternalError: Could not retrieve app files from Google. Try renewing your app file permissions in the Anvil IDE. (invalid_request; Could not determine client ID from request.)

I don’t know how to do this with AAS, since it does not have an IDE.

I saw this post [App Server] Google cloud platform - #3 by mesnavunawa, but adding --auto-migrate did not help.

It’s one of the configuration options described in the docs at:

I know, but that does not help.
When I add a file on Google Drive in the IDE it requires me to log into my Google account. I can then navigate to the file and select it into the Anvil IDE.

I would have expected the Google Drive file reference and the credentials to be stored in the Anvil app config.

Looking at the advanced config options I tried:

 anvil-app-server  --app ACHN_Start
 anvil-app-server  --google-client-id mygoogleemail@gmail.com  --app ACHN_Start

I also tried to create an app password in Google.

 anvil-app-server  --google-client-id mygoogleemail@gmail.com  --google-client-secret thegeneratedpassword --app ACHN_Start

I’m getting this error:

InternalError: Could not retrieve app files from Google. Try renewing your app file permissions in the Anvil IDE. (invalid_client; Client missing a project id.)

This is a different error, so maybe there is some progress :wink:

BTW I’m trying to access my own google drive, not the user’s google drive.