-
Notifications
You must be signed in to change notification settings - Fork 106
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
ERROR: (gcloud.run.deploy) argument --set-env-vars: Bad syntax for dict arg #560
Comments
Hi. I work on the IntelliJ extension and we have a similar issue. Did you, by any chance, try entering the all of the env vars into a single field in the VS Code UI (with the custom delimiter as required by Cloud Run for dictionary values)? This does not work in IntelliJ due to the way it is parsed, but I am not sure if it would in VSC (untested). One solution we are considering is supporting the |
Hi, @etanshaul Could you provide examples, please? Or maybe documentation links. I don't know exactly how to do this in Cloud Code.
|
I will try out (1) later. It is more of a work around, and not ideal at all. (and like I said, doesn't work in IJ, so I suspect it won't work here either). For (2) disregard, sorry. Cloud Run actually does not support this flag (https://ahmet.im/blog/mastering-cloud-run-environment-variables/). We'll need to investigate this within the team to find the best solution. |
For now I could solve that by making "Environment Variables" UI field
|
We'll slate this for a fix by passing the values to gcloud in a different way. |
During a deploy to Cloud Run, I'm trying to set the Environment Variables field like this:
But I'm having this error:
So it seems the comma needs to be escaped, but I had no success with quotation marks or backslash. How to make this work?
The text was updated successfully, but these errors were encountered: