Skip to content

Commit cc41d0d

Browse files
authored
Update source-functions.md Added 2 new errors for source functions
1 parent 3e76932 commit cc41d0d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/connections/functions/source-functions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,8 @@ async function onRequest(request, settings) {
358358
- **Invalid Settings**: A configuration error prevented Segment from executing your code. If this error persists for more than an hour, [contact Segment Support](https://segment.com/help/contact/){:target="_blank"}.
359359
- **Message Rejected**: Your code threw `InvalidEventPayload` or `ValidationError` due to invalid input.
360360
- **Unsupported Event Type**: Your code doesn't implement a specific event type (for example, `onTrack()`) or threw an `EventNotSupported` error.
361+
- **[StatusCode: 429, TooManyRequestsException: Rate Exceeded]([url](https://segment.com/docs/connections/integration_error_codes/#:~:text=errors.awaiting%2Dretry,events%20in%20burst.))**: Rate limit exceeded. These events will be retried when the rate becomes available.
362+
- **[failed calling Tracking API: the message is too large and over the maximum 32KB limit]([url](https://segment.com/docs/connections/sources/catalog/libraries/server/http-api/#:~:text=Payload%20is%20too%20large%3A%20The%20HTTP%20API%20can%20handle%20API%20requests%20that%20are%2032KB%20or%20smaller.%20The%20batch%20API%20endpoint%20accepts%20a%20maximum%20of%20500KB%20per%20request%2C%20with%20a%20limit%20of%2032KB%20per%20event%20in%20the%20batch.%20If%20these%20limits%20are%20exceeded%2C%20Segment%20returns%20a%20400%20Bad%20Request%20error.))**: Segment's Tracking API can only handle API requests that are 32KB or smaller. Reduce the size of the request in order for Segment to accept the event.
361363
- **Retry**: Your code threw `RetryError` indicating that the function should be retried.
362364

363365
Segment only attempts to run your source function again if a **Retry** error occurs.

0 commit comments

Comments
 (0)