pulumi/pkg/backend/httpstate/client
Thomas Gummerer 7ab7f00ced
Improve error handling when downloading policy packs (#16306)
The HTTP client in Go only returns an error if there is a protocol level
failure, or an error caused by client policy (which we don't use).
However the policy pack can fail to be downloaded, and return a non 200
HTTP status. This should still be considered an error.

Currently we would only detect this when trying to unpack the policy
pack. Catching and returning this error earlier allows us to give better
information about the failure to the user.

I got curious about https://github.com/pulumi/pulumi/issues/16275, and
did a short dive into the code. It looks like this should give us a
better error message there.
2024-06-03 09:34:55 +00:00
..
api.go Enable perfsprint linter (#14813) 2023-12-12 12:19:42 +00:00
api_endpoints.go Label the batchDecrypt endpoint (#15569) 2024-03-01 21:21:43 +00:00
api_test.go httpstate/client: Support no retries 2023-06-20 10:08:20 -07:00
client.go Improve error handling when downloading policy packs (#16306) 2024-06-03 09:34:55 +00:00
client_test.go Fix stack name validation check (#15245) 2024-01-27 10:35:20 +00:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
marshal_post_1.20.go [snapshot] Use a newer diff package 2023-05-16 12:33:30 -07:00
marshal_pre_1.20.go [snapshot] Use a newer diff package 2023-05-16 12:33:30 -07:00