how do i retry an egress webhook, i need to retry ...
# ask-ai
m
how do i retry an egress webhook, i need to retry an egress that my server didnt recieve from a webhook i need the payload
t
Thanks for reaching out, Jack. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! Just so you know, LiveKit automatically retries any webhook deliveries that fail a few times to handle those temporary hiccups. But if you want to manually retry a specific webhook, you can go ahead and retry the egress operation that originally triggered it. This will create a fresh webhook event with the same payload. Make sure your webhook endpoint is set up properly to handle these retries and that it sends back the right HTTP status codes to let us know if it worked or not. Also, it’s a good idea to check your server logs to see if the webhooks are coming through and being processed as expected. If you run into any issues or want a hand troubleshooting specific errors, just give me a shout—I’m here to help!
m
how do i retry the egress?
t
Hey there! If you want to retry an egress operation in LiveKit, no worries — you can use the built-in retry feature that comes with the egress client. It’s pretty handy and automatically retries recoverable errors using exponential backoff. Usually, it tries up to 3 times with a base backoff of 1 second. If you’d rather do a manual retry, just send a new egress request with the same parameters. That’ll kick off a fresh egress process and trigger a new webhook event. Feel free to reach out if you want me to walk you through the setup or help with configuring retries — I’m here to help! Sources: Sources/LiveKit/Support/AsyncRetry.swift | pkg/middleware/retry.go | Egress & Storage | livekit/livekit_composite | DeepWiki | livekit/livekit_egress.twirp.go