Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webhook considers HTTP 201 an error #1204

Open
1 of 2 tasks
tennox opened this issue Sep 11, 2024 · 1 comment
Open
1 of 2 tasks

Webhook considers HTTP 201 an error #1204

tennox opened this issue Sep 11, 2024 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@tennox
Copy link

tennox commented Sep 11, 2024

Describe the current behavior

My webhook target (windmill) returns HTTP 201, and grist seems to consider this an error:

{"status":"retrying","numWaiting":92,"updatedTime":1726065614947,"lastEventBatch":{"status":"failure","httpStatus":201,"errorMessage":"0191e187-1ff1-2d4e-8058-c1e4e0825982","size":68,"attempts":14},"lastSuccessTime":null,"lastFailureTime":1726065614947,"lastErrorMessage":"0191e187-1ff1-2d4e-8058-c1e4e0825982","lastHttpStatus":201}

Steps to reproduce

  1. Have a webhook URL that returns HTTP 201
  2. See grist in status failure

Describe the expected behavior

No response

Where have you encountered this bug?

Instance information (when self-hosting only)

No response

@tennox tennox changed the title Webhook considers 201 an error Webhook considers HTTP 201 an error Sep 11, 2024
@paulfitz
Copy link
Member

Thanks for reporting this @tennox ! You're right, our behavior looks naive:

if (response.status === 200) {
await this._stats.logBatch(id, 'success', { size, httpStatus: 200, error: null, attempts: attempt + 1 });
return true;
}

@georgegevoian georgegevoian added bug Something isn't working good first issue Good for newcomers labels Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants