err:unkey:application:invalid_environment_settingsExample
What Happened?
You calledcreateDeployment for an environment whose settings cannot produce a running deployment. Rather than accept the request and let it fail partway through the build, Unkey rejects it immediately and lists every setting that needs fixing. The detail message enumerates all failing checks at once so you can fix them in a single pass.
An environment must satisfy the same requirements the deploy pipeline enforces:
portis between 1 and 65535.cpuis at least 0.25 vCPU (250 millicores).memoryis at least 256 MiB.- At least one schedulable region is configured.
How To Fix
- Read the
detailmessage; it names each failing setting and its current value. - Call
updateSettingson the environment to set a validport,vcpus, andmemoryMib. - If the message mentions regions, configure at least one schedulable region for the environment.
- Retry
createDeployment.
Common Mistakes
- Values below the minimum:
cpumust be at least 0.25 vCPU,memoryat least 256 MiB, andportwithin 1-65535; anything lower fails validation. - Clearing all regions: An environment with no schedulable region cannot be scheduled anywhere.
- Fixing one field at a time: The
detaillists every problem at once; resolve them all before retrying instead of round-tripping per field.
Related Errors
- err:unkey:application:invalid_input - When request input fails general validation