Rewrite error message for /keys
endpoint when mellisearch is run without a master key
#552
Replies: 5 comments 3 replies
-
Even the docs suggest to set master key for interacting with Keys. https://docs.meilisearch.com/reference/api/keys.html#keys |
Beta Was this translation helpful? Give feedback.
-
Hello @Enforcer007 Thanks for the suggestion I think indicating the master key is not set could be really dangerous, but I might be wrong, WDYT @gmourier and @Kerollmops? |
Beta Was this translation helpful? Give feedback.
-
Hi @curquiza , I think it shouldn't be worrisome as :
Expected error message:
|
Beta Was this translation helpful? Give feedback.
-
Hello @Enforcer007 @gmourier and @Kerollmops I moved this discussion to the product side for consistency (definitely a product discussion) Everyone is welcome to review 😄 |
Beta Was this translation helpful? Give feedback.
-
Hey everyone 👋 I'm locking that discussion since it has been implemented with Please open a new discussion if it's needed. Thank you 🙇♂️ |
Beta Was this translation helpful? Give feedback.
-
GET
/keys
request fails onmissing_authorization_header
when Mellisearch is run without masterkey. This error makes sense only if Mellisearch is run with a master key.Original Error message
It would easier to understand if the message can be shown as below
Expected Error message
The error message can be:
Beta Was this translation helpful? Give feedback.
All reactions