GoogleCloudPlatform / cloud-code-intellij

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

Auth problem during deploy #3067

Open Vitaly1025 opened 2 years ago

Vitaly1025 commented 2 years ago

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

What did you do? I deploy my GO app to cloud run, and sometimes i get error. Maybe it's connected with my multiply accounting in google and auth from browser i don't know. But i see this bug resolving, when i make logout and after this make login into cloud code

What did you expect to see? Success deploying What did you see instead?

Get "https://gcr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

Failed to build and push Cloud Run container image. Please ensure your builder settings are correct, network is available, you are logged in to a valid GCP project, and try again. 

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

ivanporty commented 2 years ago

Thanks for the report @Vitaly1025! A few clarifications:

Maybe it's connected with my multiply accounting in google and auth from browser i don't know.

You are logged in with multiple google accounts, and you use one of them to deploy to Cloud Run - I assume the proper project is selected in the Cloud Run IDE configuration. However, that might not match the last logged in GCP project, is this correct?

Get "https://gcr.io/v2/": net/http: request canceled while waiting for connection

Do you use the same GCP project for deployment and storing images? I.e. do the projects match in Service Settings and the same project is used (gcr.io/{project_name}/...) in Revision Settings?