mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-07-22 12:22:20 +00:00
Compare commits
1 Commits
refactor-p
...
cursor-pro
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4974a22d0f |
44
cursor-problems/REPRODUCE.md
Normal file
44
cursor-problems/REPRODUCE.md
Normal file
@@ -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
cursor-problems/anthropic-internal-error/request.json
Normal file
957
cursor-problems/anthropic-internal-error/request.json
Normal file
File diff suppressed because one or more lines are too long
8
cursor-problems/anthropic-internal-error/response.json
Normal file
8
cursor-problems/anthropic-internal-error/response.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"error": {
|
||||
"message": "Internal Server Error",
|
||||
"type": "upstream_error",
|
||||
"code": 502
|
||||
},
|
||||
"request_id": "4a04e4f8-4a31-45f1-8189-455c86fc4e89"
|
||||
}
|
||||
957
cursor-problems/model-not-found-error/request.json
Normal file
957
cursor-problems/model-not-found-error/request.json
Normal file
File diff suppressed because one or more lines are too long
8
cursor-problems/model-not-found-error/response.json
Normal file
8
cursor-problems/model-not-found-error/response.json
Normal file
@@ -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
cursor-problems/openai-model-error/request.json
Normal file
966
cursor-problems/openai-model-error/request.json
Normal file
File diff suppressed because one or more lines are too long
8
cursor-problems/openai-model-error/response.json
Normal file
8
cursor-problems/openai-model-error/response.json
Normal file
@@ -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
cursor-problems/upstream-rate-limit-error/request.json
Normal file
964
cursor-problems/upstream-rate-limit-error/request.json
Normal file
File diff suppressed because one or more lines are too long
8
cursor-problems/upstream-rate-limit-error/response.json
Normal file
8
cursor-problems/upstream-rate-limit-error/response.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"error": {
|
||||
"message": "Upstream request failed",
|
||||
"type": "rate_limit_exceeded",
|
||||
"code": 429
|
||||
},
|
||||
"request_id": "80657fc6-4bca-4cb1-945d-ea65ec8a53c4"
|
||||
}
|
||||
Reference in New Issue
Block a user