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
Search is throwing 401 error with search-only API key #476
Comments
@elhe26 I just tried creating an API key with those exact permissions and tried hitting both search and individual document get end-point, and everything works as expected for me. Are you able to find any additional patterns on when the 401 is received? You can perhaps try logging them and see if there is a pattern to those failures. |
For a valid API key typesense throws "Forbidden - a valid Here are the configurations Note: Is there any specific configuration available for typesense multi node? |
Does the error happen when you use scoped API key or the search-only API key?
Make sure that the nodes are actually clustered and are not stand-alone. If they are not clustered, then key created on one node won't be available on the other. You can hit the |
Description
When searching with a restricted API key, sometimes it returns a 401 error, and sometimes the actual response.
Steps to reproduce
Expected Behavior
Actual Behavior
Erratic behavior:
Metadata
Typsense Version: typesense-server-0.22.1
OS: OS: Ubuntu 20.04 (LTS) x64
The text was updated successfully, but these errors were encountered: