GoogleCloudPlatform / cloud-code-intellij

Plugin to support the Google Cloud Platform in IntelliJ IDEA - Docs and Issues Repository
Apache License 2.0
320 stars 59 forks source link

Intellij Golang Cloud Run Locally: authentication error #3218

Open dlandvater opened 4 months ago

dlandvater commented 4 months ago

(Please ensure you are running the latest version of Cloud Cloud IntelliJ with Help > Check for Updates.)

(screenshots are often helpful) - see attached intellij_cloud_run_sample

Expected Behavior

Run the sample program in Intellij for Cloud Run, run locally

Actual Behavior

Getting this error: ... getting hash for artifact "cloud-run-test1": getting dependencies for "cloud-run-test1": parsing ONBUILD instructions: retrieving image "gcr.io/distroless/static-debian11": GET https://storage.googleapis.com/artifacts.distroless.appspot.com/containers/images/sha256:9de0a16f3958b01fee65b2775d8616d2762f023a9ec6badb35cc853cc0eada1e?access_token=REDACTED: unexpected status code 401 Unauthorized: <?xml version='1.0' encoding='UTF-8'?>AuthenticationRequiredAuthentication required.

Failed to start Cloud Run dev session.

Additional Information

I have a project of this name in GCP. I signed in to GCP using the Tools - Gemini + Google Cloud Code - Sign in

Feel free to deviate from this template as needed, especially if you are submitting a feature request.

ivanporty commented 3 months ago

Looks like there is an issue getting the image (gcr.io/distroless/static-debian11) - could you try getting it using docker pull, after you login with gcloud auth login command?