Problem
BYOC peering is routing edge traffic to the Express middleware, but interaction.wrapup events get dropped when the AWS Direct Connect link blips. GC version sits at 2024-6.612.0. The Edge node logs show a 200 OK but the middleware doesn’t receive the payload.
Config
Running Node 20 with Express 4.18. It’s weird because the WebSocket Notification API is handling real-time events fine, so JWT validation isn’t the issue. The problem seems isolated to the HTTPS webhook route on the BYOC side.
app.post('/gc/webhook/interaction', express.json(), (req, res) => {
console.log('Received wrapup:', req.body.eventId);
res.status(200).send();
});
Error
Edge logs dump this right before the timeout:
2024-05-12T14:32:01Z [ERROR] EdgeRouter: Connection reset by peer for target 10.0.45.12:3000
2024-05-12T14:32:01Z [WARN] RetryPolicy: Max retries exceeded for webhook event interaction.wrapup
Packet capture shows the TCP handshake completes, but TLS negotiation stalls on the BYOC gateway. Doing jack all to fix the Direct Connect jitter, but the webhook handler is timing out after 3 seconds.
{
"error": "ETIMEDOUT",
"code": "ECONNRESET",
"syscall": "write",
"address": "10.0.45.12",
"port": 3000
}