cloud-code-intellij icon indicating copy to clipboard operation
cloud-code-intellij copied to clipboard

Auth problem during deploy

Open pblo666 opened this issue 3 years ago • 1 comments

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

  • Cloud Code for IntelliJ version: 22.2.1-213
  • Google Cloud SDK version: 376.0.0
  • OS: Mac OS X 11.2.3

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.

pblo666 avatar Mar 15 '22 11:03 pblo666

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?

ivanporty avatar Mar 15 '22 22:03 ivanporty