Skip to content

Commit 5cc0aa9

Browse files
mzxchandrawaleedlatif1
authored andcommitted
fix(zoho-desk): propagate provider 4xx in the stable webhook prepare path
The v2 stable deploy preparation flattened every registration failure (except path conflicts) to HTTP 500, so a provider-attached permanent 4xx - e.g. Zoho's edition/validation failures from createSubscription - retried instead of failing the deploy terminally. Propagate the attached status (`?? 500`), matching the legacy save path's status-aware mapping so both deploy paths route 4xx through NonRetryableDeploymentError.
1 parent 7925ab3 commit 5cc0aa9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

apps/sim/lib/webhooks/deploy.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,10 @@ export async function prepareStableTriggerWebhooksForDeploy({
683683
success: false,
684684
error: {
685685
message: getErrorMessage(error, 'Failed to prepare webhook registrations'),
686-
status: 500,
686+
// Propagate a provider-attached status (e.g. Zoho's 4xx edition/validation
687+
// failures) so the deploy outbox fails terminally instead of retrying,
688+
// matching the legacy save path's status-aware mapping below.
689+
status: (error as { status?: number })?.status ?? 500,
687690
},
688691
}
689692
}

0 commit comments

Comments
 (0)