-
Notifications
You must be signed in to change notification settings - Fork 612
fix: create ratelimit namespace if it doesnt exist #3884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
579797d
fix: create ratelimit namespace if it doesnt exist
Flo4604 ae3e86d
fix: update docs
Flo4604 0e066a7
fix: update docs
Flo4604 cc460c3
fix: panic
Flo4604 4b322e3
fix: wrap err
Flo4604 f924870
Merge branch 'main' into feat/autocreate_ratelimit_namespace
Flo4604 de41c86
fix: rabbit comments
Flo4604 3892739
Merge branch 'feat/autocreate_ratelimit_namespace' of github.com:unke…
Flo4604 094d571
Merge branch 'main' into feat/autocreate_ratelimit_namespace
Flo4604 6f9846b
Merge branch 'main' into feat/autocreate_ratelimit_namespace
Flo4604 f5fc1cc
fix: comments
Flo4604 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| --- | ||
| title: Ratelimit Namespace Gone | ||
| --- | ||
|
|
||
| ## Description | ||
|
|
||
| This error occurs when you attempt to use a ratelimit namespace that has been deleted. Once a namespace is deleted, it cannot be restored through the API or dashboard. | ||
|
|
||
| ## Error Code | ||
|
|
||
| `unkey/data/ratelimit_namespace_gone` | ||
|
|
||
| ## HTTP Status Code | ||
|
|
||
| `410 Gone` | ||
|
|
||
| ## Cause | ||
|
|
||
| The ratelimit namespace you're trying to access was previously deleted and is no longer available through the API or dashboard. | ||
|
|
||
| ## Resolution | ||
|
|
||
| <Note> | ||
| Contact [support@unkey.dev](mailto:support@unkey.dev) with your workspace ID and namespace name if you need this namespace restored. | ||
| </Note> | ||
|
|
||
| ## Prevention | ||
|
|
||
| To avoid accidentally deleting namespaces: | ||
| - Restrict namespace deletion via workspace permissions | ||
| - Carefully review namespace-deletion requests before confirming | ||
|
|
||
| ## Related | ||
|
|
||
| - [Ratelimit Namespace Not Found](/errors/unkey/data/ratelimit_namespace_not_found) | ||
| - [Rate Limiting Documentation](/ratelimiting/introduction) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| type: object | ||
chronark marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| required: | ||
| - meta | ||
| - error | ||
| properties: | ||
| meta: | ||
| $ref: "../common/Meta.yaml" | ||
| error: | ||
| $ref: "./BaseError.yaml" | ||
| description: |- | ||
| Error response when the requested resource has been soft-deleted and is no longer available. This occurs when: | ||
| - The resource has been marked as deleted but still exists in the database | ||
| - The resource is intentionally unavailable but could potentially be restored | ||
| - The resource cannot be restored through the API or dashboard | ||
|
|
||
| To resolve this error, contact support if you need the resource restored. | ||
Flo4604 marked this conversation as resolved.
Show resolved
Hide resolved
Flo4604 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.