WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 5894554

Browse files
committed
Merge branch 'main' of github.com:unkeyed/unkey
2 parents 6e353c0 + 80b7810 commit 5894554

File tree

63 files changed

+3854
-79
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+3854
-79
lines changed

apps/docs/docs.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@
241241
"errors/unkey/data/key_auth_not_found",
242242
"errors/unkey/data/key_not_found",
243243
"errors/unkey/data/key_space_not_found",
244+
"errors/unkey/data/migration_not_found",
244245
"errors/unkey/data/permission_already_exists",
245246
"errors/unkey/data/permission_not_found",
246247
"errors/unkey/data/ratelimit_namespace_gone",
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
title: "migration_not_found"
3+
description: "The requested Key Migration was not found"
4+
---
5+
6+
<Danger>err:unkey:data:migration_not_found</Danger>
7+
8+
```json Example
9+
{
10+
"meta": {
11+
"requestId": "req_2c9a0jf23l4k567"
12+
},
13+
"error": {
14+
"detail": "The requested Migration could not be found",
15+
"status": 404,
16+
"title": "Not Found",
17+
"type": "https://unkey.com/docs/api-reference/errors-v2/unkey/data/migration_not_found"
18+
}
19+
}
20+
```
21+
22+
## What Happened?
23+
24+
This error occurs when you're trying to migrate api keys for a migration that doesn't exist in the Unkey system.
25+
26+
Common scenarios that trigger this error:
27+
28+
- Using an incorrect or expired migrationId
29+
- The migration was deleted
30+
- The migration belongs to a different workspace
31+
- Typos in the migrationId
32+
33+
Here's an example of a request that would trigger this error:
34+
35+
```bash
36+
# Attempting to migrate keys with a non-existent migrationId
37+
curl -X POST https://api.unkey.com/v2/keys.migrateKeys \
38+
-H "Content-Type: application/json" \
39+
-H "Authorization: Bearer <UNKEY_ROOT_KEY>" \
40+
-d '{
41+
"apiId": "api_123",
42+
"migrationId": "migration_456",
43+
"keys": [{ "hash": "deadbeef" }]
44+
}'
45+
```
46+
47+
## How To Fix
48+
49+
<Info>
50+
If you’re unsure about your migrationId or setup, contact [email protected].
51+
</Info>

go/apps/api/openapi/gen.go

Lines changed: 101 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)