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
When running a deployEnvironmentX mutation, if any errors are encountered it doesn't always respond with an actual API error, just a string representation of an error.
Example:
# first update a project to use an invalid build system
mutation updateProject {
updateProject(input: {
id: 32,
patch: {
activeSystemsDeploy: "lagoon_kubernetesBuildDeploy"
}
}) {
standbyRoutes
}
}
# then deploy the latest of an environment within that project
mutation deployLatest {
deployEnvironmentLatest(input: {
environment: {
id:14
}
}
)
}
{
"data": {
"deployEnvironmentLatest": "Error: Unknown active system 'lagoon_kubernetesBuildDeploy' for task 'deploy' in for project ci-features-control-k8s"
}
}
Running the same against an environment/project that has no access, we get an actual error from the API.
Describe the bug
When running a
deployEnvironmentX
mutation, if any errors are encountered it doesn't always respond with an actual API error, just a string representation of an error.Example:
Running the same against an environment/project that has no access, we get an actual error from the API.
Additional context
This was reported against the CLI, but the actual issue exists in the API (CLI has a possible workaround)
uselagoon/lagoon-cli#189
The text was updated successfully, but these errors were encountered: