Skip to content

Commit 81d6687

Browse files
committed
Reverting info pushed to wrong branch
1 parent 5e8c0ec commit 81d6687

File tree

1 file changed

+2
-9
lines changed
  • src/connections/sources/catalog/libraries/server/http-api

1 file changed

+2
-9
lines changed

src/connections/sources/catalog/libraries/server/http-api/index.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,9 @@ In practice that means taking a Segment source **Write Key**,`'abc123'`, as the
2323
To send data to Segment's HTTP API, a content-type header must be set to `'application/json'`.
2424

2525
## Errors
26-
Segment returns a `200` response for all API requests except errors caused by large payloads and JSON errors (which return `400` responses.) To debug events that return `200` responses but aren't accepted by Segment, use the Segment Debugger.
26+
Segment returns a `200` response for all API requests so debugging should be done in the Segment Debugger. The only exception is if the request is too large / JSON is invalid it will respond with a `400`.
2727

28-
Common reasons events are not accepted by Segment include:
29-
- **Payload is too large:** The HTTP API can handle API requests that are 32KB or smaller. The batch API endpoint accepts a maximum of 500KB per request, with a limit of 32KB per event in the batch. If these limits are exceeded, Segment returns a 400 Bad Request error.
30-
- **Identifier is not present**: The HTTP API requires that each payload has a userId and/or anonymousId.
31-
- **Track event is missing name**: All `track` events sent to Segment must have an `event` field.
32-
- **Deduplication**: Segment deduplicates events using the `messageId` field, which is automatically added to all payloads coming into Segment. If you're setting up the HTTP API yourself, ensure all events have unique messageId values.
33-
- **Invalid JSON**: If you send an event with invalid JSON, Segment returns a 400 Bad Request error.
34-
35-
Segment welcomes feedback on API responses and error messages. [Reach out to support](https://segment.com/help/contact/){:target="_blank"} with any requests or suggestions you may have.
28+
Segment welcomes feedback on API responses and error messages. [Reach out to support](https://segment.com/help/contact/) with any requests or suggestions you may have.
3629

3730
## Rate Limits
3831

0 commit comments

Comments
 (0)