Auth0 Custom Webhook Log Stream Fails With "Could not reach endpoint" Error
Last Updated:
Overview
Auth0 Custom Webhook Log Streams fail to deliver events when the receiving endpoint returns a 403 Forbidden HTTP status code or expects a different content format. Resolve this issue by allowlisting Auth0 IP addresses in the Web Application Firewall and verifying the stream content format.
The log stream health dashboard displays the following error:
Could not reach endpoint
A newly created duplicate log stream delivers events successfully because the new stream bypasses the historical payload that caused the original rejection.
Applies To
- Auth0
- Log Streams
- Custom Webhooks
Cause
Auth0 guarantees at-least-once delivery and retries payloads that fail delivery. If the receiving endpoint or a Web Application Firewall (WAF) rejects the payload without returning a successful HTTP status code, Auth0 enters a retry loop for that specific batch of logs. This rejection typically occurs because the WAF blocks the Auth0 IP addresses or because the endpoint rejects the Content Format configuration.
Solution
How is the log stream health monitored?
Check the log stream health dashboard to view the most recent delivery errors by following these steps.
- Navigate to Dashboard > Monitoring > Streams.
- Click the more options menu (
...) next to the specific log stream. - Select Health.
- Refer to the Check Log Stream Health documentation for additional details.
Allowlist the Auth0 IP Addresses in the Firewall
Review the endpoint firewall or WAF logs to identify rejected requests and allowlist the Auth0 egress IP addresses by following these steps.
- Inspect the endpoint logs around the timeframe of the delivery failure to identify 403 Forbidden responses.
- Allowlist the Auth0 Log Stream egress IP addresses for the specific region in the WAF settings.
- Refer to the Auth0 IP Allowlist documentation for the complete list of IP addresses.
What content format does the endpoint require?
Verify that the log stream configuration matches the payload format that the receiving server requires by following these steps.
- Review the endpoint requirements to determine if it expects JSON Lines or a JSON Array.
- Check the Content Format setting on the custom log stream.
- Update the configuration to match the endpoint requirements. Reference the Custom Log Streams documentation for more details.
Bypass the Rejected Payload With a New Stream
If the endpoint does not require the historical logs, delete the stalled stream and create a replacement by following these steps.
- Delete the original log stream that displays the error.
- Create a new custom webhook log stream pointing to the same endpoint. The new stream starts capturing current events and bypasses the payload that the endpoint previously rejected.