Skip to content
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

Fix koyeb service update when overriding env of a different type #135

Open
brmzkw opened this issue Sep 18, 2023 · 0 comments
Open

Fix koyeb service update when overriding env of a different type #135

brmzkw opened this issue Sep 18, 2023 · 0 comments

Comments

@brmzkw
Copy link
Contributor

brmzkw commented Sep 18, 2023

Given a service using a plain text environment variable "XXX", then the command koyeb service update app/svc --env XXX=@yyy returns an error because @yyy refers a secret and changing the environment variable type is not supported:

❌ Error while updating the service `xxx/xxx`: the Koyeb API returned an error 400: error_processing_request

🏥 How to solve the issue?
Fix the request, and try again

🕦 The original error was:
400 Bad Request

Output of --debug:

DEBU[0000] ========== HTTP response ==========
HTTP/2.0 400 Bad Request
Content-Length: 85
Content-Type: application/json
Date: Mon, 18 Sep 2023 16:31:56 GMT
Strict-Transport-Security: max-age=15724800; includeSubDomains
X-Ratelimit-Limit: 30, 30;w=60
X-Ratelimit-Remaining: 29
X-Ratelimit-Reset: 4

{"status":400,"code":"error_processing_request","message":"error_processing_request"}

This might be an issue with the API, and not only with the CLI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant