Hi,
I’m getting a 500 Internal Server Error with an empty response body when calling POST /sync/history to mark episodes as watched, using a valid OAuth token and a minimal, spec-compliant payload.
Example request:
POST https://api.trakt.tv/sync/history
Headers: trakt-api-version: 2, trakt-api-key: , Authorization: Bearer , Content-Type: application/json
Body:
{"shows":[{"ids":{"trakt":110492},"seasons":[{"number":2,"episodes":[{"number":2}]}]}]}
Response:
Status: 500 Internal Server Error
Body: (empty)
Header x-error-message: “Internal server error. Please open a support issue and include your full API request and response, including all headers.”
Request ID (from an earlier attempt with the same show): 07550fe4-1686-434b-b8b3-8ccc8ca9784b
This happens consistently for every show/episode I try (tested with several different shows, e.g. trakt id 110492 season 2 episode 2, and trakt id 256827 season 1 episode 8) — not specific to one show. GET requests (e.g. /sync/watched/shows, /sync/watchlist/shows) work fine with the same token. Marking the same episode as watched directly on the trakt.tv website works without issue, so this seems isolated to the public API’s /sync/history endpoint for my account.
Could you look into this? Happy to provide more request IDs or details if needed.
Thanks!