You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Snapshot import 500s on a few env shapes, and leaks the raw error #8568
Three ways that blows up, all reproduced against a local platform:
no settings.env at all (the route's own body schema doesn't require it), 500 Cannot convert undefined or null to object
an env value of null, 500 on env.hidden
a snapshot with encrypted hidden env values and no credentialSecret, 500 The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
The third one also happens when the env vars are being thrown away anyway (components.envVars: false or "keys"), because the decrypt loop runs over the original snapshot before the component filtering is applied.
The raw messages go straight to the caller, which isn't great for a public endpoint.
Might be worth defaulting env to {}, skipping values that aren't objects, and returning a 400 when a secret is genuinely needed but missing.
Activity
Harden the snapshot import tool against the route's rough edges