Skip to content

500 Internal Server Error when deleting user list via Trakt API #667

@linaspurinis

Description

@linaspurinis

500 Internal Server Error when deleting user list via Trakt API

Description

Attempting to delete a user-created list via the Trakt API consistently returns a 500 Internal Server Error, even though the list exists and is discoverable via the API.


Steps to Reproduce

  1. Fetch user lists via Trakt API
  2. Identify an existing list (example: delete me, Trakt ID 33035411)
  3. Call the Trakt API endpoint to delete the list
  4. Receive 500 Internal Server Error

Expected Behavior

The list should be deleted successfully, or a meaningful error response should be returned if deletion is not possible.


Actual Behavior

The API returns a 500 Internal Server Error with an empty response body.


Console Output / Logs

Attempting to delete list 'delete-me' for user 'harry-stegeman-werk-gmail-com'...
Found user: harry-stegeman-werk-gmail-com (ID: 31477)

Fetching user's lists from Trakt...
Found list on Trakt: 'delete me' (Trakt ID: 33035411)

Deleting list from Trakt...
Retry 1: Error 500 - Internal Server Error
Response: Empty response

X-Error-Message: Internal server error. Please open a support issue and include your full API request and response, including all headers.
X-Trakt-Server: rails
X-Runtime: 22.029660
X-Request-Id: 6500340f-f222-4555-bf52-74b885d0e119
CF-Ray: 9af458aced56c030-VNO

Full headers:

  Headers: {'Date': 'Wed, 17 Dec 2025 06:26:21 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'CF-Ray': '9af458aced56c030-VNO', 'CF-Cache-Status': 'DYNAMIC', 'Access-Control-Allow-Origin': '*', 'Cache-Control': 'max-age=0, private, must-revalidate, no_store=true, no_cache=true', 'Content-Encoding': 'gzip', 'Server': 'cloudflare', 'Set-Cookie': '_traktsession=5RCkOVecpCPxZF2N2Q65oMGybrMe%2BJHujTHKfjRrjYhH2%2BkircXiM9Nkt%2Fc9ZkNk4QdhRrSoGdHCpzPLvGVpCiNsgzQf6fGeuF4YnX3BEoZJ1ceKgy%2B2c%2BhwqTSA2OKhoXNtLXkSB8QclJ%2FR%2BVTqKFYMOoAk1FIiayip29N0lHIdKpQg4UrabsS7vOLN26E%2BStdeRT%2FHqZ0tl4IhfchOA2TQKPcL8S5R%2Bg%3D%3D--ISFUrlAKuSP%2BoRB3--cpKABiKsSeF0TYWJyf%2Flow%3D%3D; path=/; HttpOnly; SameSite=Lax', 'Vary': 'Accept-Encoding, Origin', 'Cf-Placement': 'remote-IAD', 'Referrer-Policy': 'strict-origin-when-cross-origin', 'X-Content-Type-Options': 'nosniff', 'X-Download-Options': 'noopen', 'X-Error-Message': 'Internal server error. Please open a support issue and include your full API request and response, including all headers.', 'X-Frame-Options': 'SAMEORIGIN', 'X-Permitted-Cross-Domain-Policies': 'none', 'X-Private-User': 'false', 'X-Request-Id': '6500340f-f222-4555-bf52-74b885d0e119', 'X-Runtime': '22.029660', 'X-Trakt-Server': 'rails', 'X-XSS-Protection': '0', 'access-control-expose-headers': 'X-Pagination-Page,X-Pagination-Page-Count,X-Pagination-Limit,X-Pagination-Item-Count,X-Trending-User-Count,X-Start-Date,X-End-Date,X-Sort-By,X-Sort-How,X-Private-User,X-Ratelimit,Retry-After,X-Upgrade-URL,X-Applied-Sort-By,X-Applied-Sort-How,Cache-Control,Pragma,Expires', 'alt-svc': 'h3=":443"; ma=86400'}```

Metadata

Metadata

Assignees

Labels

BugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions