Channels
announcements
automation-api
aws
azure
blog-posts
built-with-pulumi
cloudengineering
cloudengineering-support
content-share
contribex
contribute
docs
dotnet
finops
general
getting-started
gitlab
golang
google-cloud
hackathon-03-19-2020
hacktoberfest
install
java
jobs
kubernetes
learn-pulumi-events
linen
localstack
multi-language-hackathon
office-hours
oracle-cloud-infrastructure
package-authoring
pulumi-ai
pulumi-cdk
pulumi-cloud
pulumi-crosscode
pulumi-deployments
pulumi-kubernetes-operator
pulumiverse
python
registry
status
testingtesting123
testingtesting321
typescript
welcome
workshops
yaml
Powered by
Title
b
brash-hairdresser-60389
03/07/2023, 1:41 PM
Hello Channel, do you know if there is documentation about the structure and possible values of the error for automation API? I’m looking for the doc about the
CommandError
to understand what could the possible output of the
message
could be and the
cause
l
lemon-agent-27707
03/07/2023, 2:52 PM
there is an issue open to improve the experience around structured errors in automation API. The http server examples (available most languages) have some examples of handling errors:
https://github.com/pulumi/automation-api-examples/blob/main/go/pulumi_over_http/main.go#L83
Probably the best source for existing error handling is looking at the SDK for the language of your choice, but there are docs for these SDKs as well:
https://github.com/pulumi/pulumi/blob/master/sdk/go/auto/errors.go
https://pkg.go.dev/github.com/pulumi/pulumi/sdk/v3/go/auto#IsCreateStack409Error
#automation-api
Join Slack