Skip to content

Add handling for HTTP 201 server responses#118

Merged
bdd merged 1 commit intobdd:mainfrom
cuu508:handle_201
Jun 26, 2023
Merged

Add handling for HTTP 201 server responses#118
bdd merged 1 commit intobdd:mainfrom
cuu508:handle_201

Conversation

@cuu508
Copy link
Copy Markdown
Contributor

@cuu508 cuu508 commented Jun 26, 2023

Since very recently, Healthchecks can return a HTTP 201 response to a ping request. Currently runitor treats HTTP 201 as non-retriable errors, this PR fixes that.

Copy link
Copy Markdown
Owner

@bdd bdd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

@bdd bdd merged commit f77ac6a into bdd:main Jun 26, 2023
@bdd
Copy link
Copy Markdown
Owner

bdd commented Jun 26, 2023

v1.3.0-beta.1 release is out for testing.

@cuu508
Copy link
Copy Markdown
Contributor Author

cuu508 commented Jun 27, 2023

I tested pinging via UUID and via slug with the linux-amd64, linux-arm, linux-arm64, and windows-amd64 builds, no issues.

On the Healthchecks side, I had to make check auto-provisioning opt-in to preserve backwards compatibility. To enable auto-provisioning, the client must add a ?create=1 query parameter to the ping URL. I cannot yet do that with runitor, so I haven't tested the 201 response handling yet.

@cuu508 cuu508 deleted the handle_201 branch June 27, 2023 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants