Webhook target is throwing 500s on queue events. Retries are just stacking up and clogging the service logs. Need to push the failed payload to a dead letter queue immediately on error. Here’s the handler:
app.post('/webhook', (req, res) => {
try {
// process
res.status(200).send();
} catch (err) {
// TODO: push to SQS DLQ
res.status(500).send();
}
});
- Node.js 18
- Express server
- Genesys Cloud /api/v2/analytics/events/queue/summaries
How do I structure the DLQ push so it doesn’t block the response?