---
title: "오류"
description: "오류 본문, 모든 상태와 코드, 메시지, 다시 시도할 실패."
canonical: https://dino.markets/ko/docs/errors/
---

> Index of every dino.markets page and doc for AI readers: [llms.txt](https://dino.markets/llms.txt)

# 오류

오류 본문, 모든 상태와 코드, 메시지, 다시 시도할 실패.

## 오류 본문

모든 오류에는 같은 세 필드가 있습니다.

```
curl -s -G "https://api.dino.markets/v2/odds" \
  -d league=nba -d limit=0 \
  -H "Authorization: Bearer $DINO_API_KEY"
```

400 Bad Request

```
{
  "error": "invalid_request",
  "message": "limit must be an integer from 1 to 100; the default is 25.",
  "request_id": "req_d2fc23deaa31bd58aff76f3c"
}
```

`error`는 분기에 쓰는 안정적인 코드입니다. `message`는 사람이 읽는 용도이며 바뀔 수 있습니다. `request_id`는 `X-Request-Id` 헤더에도 있으며, 지원팀에 문의할 때 함께 알려 주세요. 오류에는 크레딧이 들지 않습니다.

## 코드

| 상태 | `error` | 발생 상황 | 재시도 |
| --- | --- | --- | --- |
| 400 | `invalid_request` | 파라미터가 없거나, 알 수 없거나, 범위를 벗어남 | 아니요, 요청을 수정하세요 |
| 401 | `unauthorized` | 키가 없거나 틀리거나 비활성화됨 | 아니요 |
| 404 | `not_found` | 경로가 없거나 이 id의 경기가 없음 | 아니요 |
| 405 | `method_not_allowed` | 메서드가 `GET`이 아님 | 아니요 |
| 429 | `rate_limited` | 요청이 너무 많음 | 예, `Retry-After` 이후 |
| 429 | `quota_exceeded` | 키의 크레딧이 호출 비용보다 적음 | 크레딧이 갱신되거나 요금제를 바꾼 이후 |
| 500 | `internal_error` | 서버 측 문제 | 예 |
| 503 | `unavailable` | 서비스가 시작 중이거나, 계정을 잠시 이용할 수 없거나, 큰 요청이 한꺼번에 너무 많이 처리되고 있음 | 예, `Retry-After` 이후 |

검사는 다음 순서로 진행됩니다. 서비스 준비 상태, 메서드, 경로, 키, 파라미터, 경기, 크레딧.

## 잘못된 파라미터

| `message` 시작 부분 | 원인 |
| --- | --- |
| `league is required unless event_ids is given.` | 둘 다 보내지 않음 |
| `Unknown league value "xx".` | 유효한 리그가 메시지 뒤에 나옴 |
| `Unknown markets value "foo".` 또는 `markets is empty.` | 유효한 마켓이 뒤에 나옴 |
| `Unknown period value "h3".` | 유효한 피리어드가 뒤에 나옴 |
| `alternates is not valid: "yes".` | `true` 또는 `false`를 보내세요 |
| `Unknown books value "zz".` | 유효한 북메이커가 뒤에 나옴 |
| `Unknown region value "zz".` | 유효한 지역이 뒤에 나옴 |
| `Unknown status value "done".` | 유효한 상태가 뒤에 나옴: `scheduled`, `live`, `finished`, `all` |
| `start_after is not valid: "...".` 또는 `start_before is not valid: "...".` | 값이 RFC 3339 시각이 아닙니다. `2026-11-30T00:00:00Z`처럼 보내고, `+` 오프셋은 `%2B`로 쓰세요. |
| `limit must be an integer from 1 to 100` | `limit`이 범위를 벗어남 |
| `cursor is not valid.` | `next_cursor`를 그대로 보내세요 |
| `Event id "abc" is not valid; ids are 32 characters.` | `event_ids`의 잘못된 값 |
| `Event id must be 32 characters.` | 경기 하나 경로의 잘못된 id |
| `event_ids takes at most 100 ids.` | id가 너무 많음 |

## 키가 없거나 틀린 경우

```
curl -s "https://api.dino.markets/v2/odds?league=nba"
```

401 Unauthorized

```
 or in the x-api-key header; the apiKey query parameter is not accepted on /v2.",
  "request_id": "req_d3d432806099cab5a336380e"
}">{
  "error": "unauthorized",
  "message": "API key is missing. Send it as Authorization: Bearer <key> or in the x-api-key header; the apiKey query parameter is not accepted on /v2.",
  "request_id": "req_d3d432806099cab5a336380e"
}
```

| `message` | 원인 |
| --- | --- |
| `API key is missing. Send it as ...` | 키가 없거나 URL에 키를 넣음 |
| `API key is invalid or not tied to a subscription.` | 잘못된 키 |
| `API key has been deactivated.` | 폐기된 키 |

## 찾을 수 없음

없는 경로:

```
curl -s "https://api.dino.markets/v2/nothing" \
  -H "Authorization: Bearer $DINO_API_KEY"
```

404 Not Found

```
{
  "error": "not_found",
  "message": "No such route.",
  "request_id": "req_1b9452db27085ca9a02a0977"
}
```

시작 후 72시간이 지나 끝난 경기 또는 존재한 적 없는 id:

```
curl -s "https://api.dino.markets/v2/events/00000000000000000000000000000000/odds" \
  -H "Authorization: Bearer $DINO_API_KEY"
```

404 Not Found

```
{
  "error": "not_found",
  "message": "Event not found. It may have concluded; get current ids from /v2/events.",
  "request_id": "req_50075f7ad136112fd6ed700e"
}
```

## 잘못된 메서드

`GET`만 제공합니다. `Allow` 헤더에 표시됩니다.

```
curl -s -D - -X POST "https://api.dino.markets/v2/leagues" \
  -H "Authorization: Bearer $DINO_API_KEY"
```

405 Method Not Allowed

```
allow: GET
cache-control: no-store
content-type: application/json; charset=utf-8
x-request-id: req_c04acfc031018c7809b5593d

{
  "error": "method_not_allowed",
  "message": "Only GET is supported.",
  "request_id": "req_c04acfc031018c7809b5593d"
}
```

## 제한과 서버 오류

| 상태 | `message` | 헤더 |
| --- | --- | --- |
| 429 | `Rate limited. Space requests out over several seconds and try again.` | `Retry-After: 1` |
| 429 | `This call costs 1 credit and the key has 0 left. ...` |  |
| 429 | `Usage quota has been reached. Upgrade the plan or wait for the quota to reset.` |  |
| 500 | `Something went wrong on our side. Try again in a moment.` |  |
| 503 | `The service is starting up. Try again in a few seconds.` | `Retry-After: 10` |
| 503 | `Accounts are unavailable. Try again in a few seconds.` | `Retry-After: 5` |
| 503 | `Too many large requests are being answered right now. Try again in a few seconds, or ask for less: fewer markets, no alternates, one period.` | `Retry-After: 2` |

마지막 503은 `alternates=true`, `game`이 아닌 `period` 또는 선수 마켓을 요청하는 `/v2/odds` 호출에서 나옵니다. 이런 호출은 서버마다 한 번에 3건까지 만들어지고, 같은 순간에 오는 네 번째 호출은 거부되며 크레딧이 들지 않습니다. 대기 시간 뒤에 다시 시도하거나, 마켓을 줄이거나 피리어드를 하나만 요청하세요.

## 재시도

`429 rate_limited`, `500`, `503`은 점점 늘어나고 무작위화한 대기 시간과 시도 횟수 제한을 두고 재시도하며, `Retry-After`가 있으면 최소한 그만큼 기다리세요. `400`, `401`, `404`, `405`는 먼저 수정하세요. `quota_exceeded`는 재시도하지 마세요. 성공한 재시도는 다시 크레딧이 들며, 응답이 유실된 경우 첫 호출이 이미 계산되었을 수 있습니다.
