Error while changing domain with the CLI

Hey,

For our preview environments, we need to set a deterministic domain for our backends.

To do this until today, we were running the following command:

koyeb app update preview-${{ env.APP_NAME }} --domain ${{ env.companyName}}-${{ env.APP_NAME }}

This was working fine, until today: we now systematically get the following error message:

❌ Error while renaming the automatic domain for `preview-pr-1119` to "<company>-pr-1119": the Koyeb API returned an error 400: Cannot change app_id for autoassigned domains

Note: this is only happening using the CLI, using the dashboard works fine (as described in How can I change the default domain name? ), but we need to use the CLI in our CI.

Notes:

  • We install the latest CLI using the koyeb-community/koyeb-actions@v2 Github Action
  • The previous step (deploying the application using another Github Action) works fine

Thanks in advance for any help!

Hey! It could be related to a recent change. Let me check

Hey again :slight_smile:

It was indeed an issue on our end, sorry about that! We just released a new version of the koyeb CLI that should work like before.

Let me know if that works for you!

1 Like

Hey @nicolas ,

First of all, thanks for your quick response!

Just triggered a new pipeline which deployed fine, it looks all good now.

Thanks for the fix!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.