mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-08-01 00:06:14 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4974a22d0f |
@@ -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.
|
||||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"error": {
|
||||||
|
"message": "Internal Server Error",
|
||||||
|
"type": "upstream_error",
|
||||||
|
"code": 502
|
||||||
|
},
|
||||||
|
"request_id": "4a04e4f8-4a31-45f1-8189-455c86fc4e89"
|
||||||
|
}
|
||||||
File diff suppressed because one or more lines are too long
@@ -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"
|
||||||
|
}
|
||||||
File diff suppressed because one or more lines are too long
@@ -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"
|
||||||
|
}
|
||||||
File diff suppressed because one or more lines are too long
@@ -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