Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encounter "The request is missing a valid API key" when trying to set up Google Drive #135

Open
superanalytic opened this issue Oct 17, 2024 · 8 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@superanalytic
Copy link

I am a customer engineer(CE) at Google and I have Google Workspace license assigned to my CE Argolis admin account. I was able to complete Step 1 the Terraform Deployment. But I kept getting the "The request is missing a valid API key" error when I ran

echo "{}" >> gdrive_folder_results.json
python scripts/create_gdrive_folder.py --folder-name="genai-marketing-assets" --service-account-email=<cloud_run_backend_sa>

from Step 3 - Set up Google Drive.

Here is the error reported:
{
"error": {
"code": 403,
"message": "The request is missing a valid API key.",
"errors": [
{
"message": "The request is missing a valid API key.",
"domain": "global",
"reason": "forbidden"
}
],
"status": "PERMISSION_DENIED"
}

@thekoma
Copy link
Member

thekoma commented Oct 17, 2024

Hi! I'm thekoma@ (same role ping me if you want)

Have you set up the default application login?

gcloud auth application-default login \
--scopes='https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/drive'

@superanalytic
Copy link
Author

superanalytic commented Oct 17, 2024 via email

@chmstimoteo chmstimoteo added the bug Something isn't working label Nov 4, 2024
@chmstimoteo
Copy link
Collaborator

@superanalytic any news on this issue?

@superanalytic
Copy link
Author

I tried suggestion. But I still ran into the same issue.

@michaelwsherman
Copy link
Member

Were there any errors during the terraform apply step?

@michaelwsherman
Copy link
Member

And can you confirm you're doing this all via Cloud Shell and that you did terraform via Cloud shell?

@superanalytic
Copy link
Author

I did my comment via Cloud Shell.

@chmstimoteo chmstimoteo assigned thekoma and unassigned imp14a Nov 7, 2024
@chmstimoteo
Copy link
Collaborator

@thekoma is gently offering an extra pair of eyes to troubleshoot.

Thanks @thekoma !!

@chmstimoteo chmstimoteo added the help wanted Extra attention is needed label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants