GoogleCloudPlatform / cloud-run-button

Let anyone deploy your GitHub repos to Google Cloud Run with a single click
https://cloud.run
Apache License 2.0
526 stars 91 forks source link

No Billing Error #138

Closed jamesward closed 4 years ago

jamesward commented 4 years ago

We have handling for helping the user setup billing, but unfortunately it doesn't work in all scenarios. In a new account I'm getting:

demo@cloudshell:~$ cloudshell_open --repo_url "https://github.com/jamesward-demo/hello-php.git" --page "editor" --git_branch "master"
[ ✓ ] Cloned git repository https://github.com/jamesward-demo/hello-php.git.
[ ✓ ] Queried list of your GCP projects
[ ? ] Would you like to use existing GCP project  to deploy this app? Yes
Error: error determining if billing account is linked: exit status 1. output=
ERROR: (gcloud.beta.billing.projects.describe) could not parse resource []
ahmetb commented 4 years ago

Hmm that looks like a gcloud bug.

ahmetb commented 4 years ago

I also recall us trying with a new account and it was working fine.

We run "gcloud", "beta", "billing", "projects", "describe", "-q", "--format=json", projectID so I assume something gcloud does is failing.

jamesward commented 4 years ago

Oh, this failed because I didn't have any projects yet and our handling for that case is broken for some reason. I'll investigate.