Skip to content

bug(app env): create and update return 422 against Coolify 4.1.2 #83

Description

@0disoft

Environment

  • Coolify CLI: 1.6.2
  • Coolify server: 4.1.2
  • OS: Windows
  • Shell: PowerShell 7

Commands

Create:

coolify app env create <app_uuid> `
  --key EXAMPLE_FLAG `
  --value disabled `
  --comment "Example runtime flag" `
  --is-literal `
  --build-time=false `
  --runtime=true `
  --format json

Update:

coolify app env update <app_uuid> EXAMPLE_FLAG `
  --value disabled `
  --comment "Example runtime flag" `
  --is-literal `
  --build-time=false `
  --runtime=true `
  --format json

Actual result

Both commands fail with:

API error 422 on applications/<app_uuid>/envs: Validation failed.

Expected result

The environment variable should be created or updated successfully.

Additional information

  • Creating the same environment variable through the Coolify web UI succeeds with runtime enabled, build-time disabled, and literal enabled.
  • Listing application environment variables through the CLI succeeds.
  • I could not find an existing open or closed issue matching this failure.
  • The generic error does not expose which request field failed server-side validation. Returning the validation field details would make this class of compatibility issue substantially easier to diagnose.

This appears to be a CLI/server environment-variable API payload compatibility issue rather than an invalid application setting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions