Open
Description
Preliminary Checks
-
I have reviewed the documentation: https://unkey.com/docs
-
I have searched for existing issues: https://github.com/unkeyed/unkey/issues
-
This issue is not a question, general help request, or anything other than a bug report directly related to Unkey. Please ask questions in our Discord community: https://unkey.com/discord.
Reproduction / Replay Link (Optional)
No response
Issue Summary
As a user if someone deletes a namespace by accident from our ratelimit for example
user.delete
They are unable to create a new namespace with the name of user.delete
when they attempt it they get:
{
"code": "INTERNAL_SERVER_ERROR",
"httpStatus": 500,
"stack": "TRPCError: We are unable to create namspace. Please try again or contact [email protected]\n at (vc/edge/function:1030:252976)\n at (vc/edge/function:1030:252400)\n at (vc/edge/function:295:130122)\n at (vc/edge/function:295:129531)\n at (vc/edge/function:295:129531)\n at (vc/edge/function:295:129531)\n at (vc/edge/function:295:129841)\n at (vc/edge/function:1040:13815)\n at (vc/edge/function:1040:15263)",
"path": "ratelimit.namespace.create"
}
We should allow recreation or allow restoration without our intervention
Steps to Reproduce
- delete namespace
- recreate namespace with same name
- error
Expected behavior
Allow for the same namespace to be used again after soft delete or gracefully allow for restoration.
Other information
No response
Screenshots
No response
Version info
N/A