Question
Why does my destination function work successfully in the Function Tester but throw errors with live events?
Product
Twilio Segment
Environment
Segment Console
Answer
This can happen if the live events passing through are different from the event sample you used to test the function.
The most common errors that can be triggered in the live pipeline include:
EventNotSupported |
If you haven't supplied a function for a particular event type, Segment throws an EventNotSupported error by default. |
RetryError |
Segment's internal system retries failed functions API calls for four hours with a randomized exponential backoff after each attempt. This substantially improves delivery rates. Note: Retries work the same for both functions and cloud-mode destinations in Segment. |
Additional Information
For more details on errors and limits of destination functions, please refer to the following pages: