Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/connections/functions/source-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ The `Segment.set()` method accepts an object with the following fields:
- `id` - Object's unique identifier.
- `properties` - Object with free-form data.

> warning ""
> When you use the `set()` method, you won't see events in the Source Debugger. Segment only sends events to connected warehouses.

### Runtime and dependencies

{% include content/functions/runtime.md %}
Expand Down Expand Up @@ -347,11 +350,11 @@ async function onRequest(request, settings) {

### Error types

- **Bad Request** is any error thrown by your code not covered by the other errors.
- **Bad Request**: is any error thrown by your code not covered by the other errors.
- **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"}.
- **Message Rejected**: Your code threw `InvalidEventPayload` or `ValidationError` due to invalid input.
- **Unsupported Event Type**: Your code does not implement a specific event type (`onTrack()`, etc.) or threw a `EventNotSupported` error.
- **Retry** - Your code threw `RetryError` indicating that the function should be retried.
- **Retry**: Your code threw `RetryError` indicating that the function should be retried.

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

Expand Down