Skip to content
Draft
Show file tree
Hide file tree
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
44 changes: 44 additions & 0 deletions cursor-problems/REPRODUCE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Reproducing Cursor Problems

Each subdirectory contains a `request.json` (the request body) and `response.json` (the error response received).

## Using curl to reproduce

From the `routstr-core/` directory:

```bash
# OpenAI model error
curl -X POST https://staging.routstr.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d @cursor-problems/openai-model-error/request.json

# Anthropic internal error
curl -X POST https://staging.routstr.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d @cursor-problems/anthropic-internal-error/request.json

# Model not found error
curl -X POST https://staging.routstr.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d @cursor-problems/model-not-found-error/request.json

# Upstream rate limit error
curl -X POST https://staging.routstr.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d @cursor-problems/upstream-rate-limit-error/request.json
```

## Generic pattern

```bash
curl -X POST <API_ENDPOINT> \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d @cursor-problems/<directory>/request.json
```

The `-d @filename` syntax tells curl to read the request body from a file.
957 changes: 957 additions & 0 deletions cursor-problems/anthropic-internal-error/request.json

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions cursor-problems/anthropic-internal-error/response.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"error": {
"message": "Internal Server Error",
"type": "upstream_error",
"code": 502
},
"request_id": "4a04e4f8-4a31-45f1-8189-455c86fc4e89"
}
957 changes: 957 additions & 0 deletions cursor-problems/model-not-found-error/request.json

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions cursor-problems/model-not-found-error/response.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"error": {
"message": "Model 'claude-4.5-sonnet-thinking' not found",
"type": "invalid_model",
"code": 400
},
"request_id": "d410f512-3221-4047-a4ee-9be6e3fabe38"
}
966 changes: 966 additions & 0 deletions cursor-problems/openai-model-error/request.json

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions cursor-problems/openai-model-error/response.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"error": {
"message": "Input required: specify \"prompt\" or \"messages\"",
"type": "invalid_request_error",
"code": 400
},
"request_id": "586e0aec-351f-413a-8641-ddda4a0cbadf"
}
964 changes: 964 additions & 0 deletions cursor-problems/upstream-rate-limit-error/request.json

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions cursor-problems/upstream-rate-limit-error/response.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"error": {
"message": "Upstream request failed",
"type": "rate_limit_exceeded",
"code": 429
},
"request_id": "80657fc6-4bca-4cb1-945d-ea65ec8a53c4"
}
Loading