MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / handleWebhookError

Function handleWebhookError

integrations/airtable/src/webhooks.ts:448–464  ·  view source on GitHub ↗
(response: Response, errorType: string)

Source from the content-addressed store, hash-verified

446}
447
448async function handleWebhookError(response: Response, errorType: string) {
449 const rawErrorBody = await response.json();
450
451 const parsedErrorBody = AirtableErrorBodySchema.safeParse(rawErrorBody);
452
453 if (!parsedErrorBody.success) {
454 throw new AirtableSDK.Error(
455 `${errorType}_PARSE_ERROR`,
456 `${response.statusText}:\n${rawErrorBody}`,
457 response.status
458 );
459 }
460
461 const { type, message } = parsedErrorBody.data;
462
463 throw new AirtableSDK.Error(type, message ?? response.statusText, response.status);
464}

Callers 3

createMethod · 0.70
listMethod · 0.70
deleteMethod · 0.70

Calls 1

jsonMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…