We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 773c075 + d47ec86 commit d583709Copy full SHA for d583709
apps/web/app/api/webhooks/callback/route.ts
@@ -39,7 +39,7 @@ export const POST = async (req: Request) => {
39
40
const request = Buffer.from(sourceBody, "base64").toString("utf-8");
41
const response = Buffer.from(body, "base64").toString("utf-8");
42
- const isFailed = status >= 400;
+ const isFailed = status >= 400 || status === -1;
43
44
// Unsubscribe Zapier webhook
45
if (
@@ -62,7 +62,7 @@ export const POST = async (req: Request) => {
62
url,
63
event,
64
event_id: eventId,
65
- http_status: status,
+ http_status: status === -1 ? 503 : status,
66
webhook_id: webhookId,
67
request_body: request,
68
response_body: response,
0 commit comments