TLDR Jeremy encountered a "Forbidden" error when using a search API key. Kishore Nallan discussed possible causes, and Jeremy discovered they mistakenly used a production key in a test environment.
I just created a search only api key, and now when I replace the inital api key that was created with the search key, i get `"message": "Forbidden - a valid `x-typesense-api-key` header must be sent."`
Check the /keys end-point -- it returns few chars from the key. Ensure you are using the correct key.
ya it's the right key, i just tried creating a new one and immediately placing it in my search query, still same forbidden result
Is this locally? Check the typesense server logs to see if a more detailed error is logged.
is `x-typesense-api-key` the correct header for a search only key?
oh boy, ignore this Kishore Nallan
i figured out my error. time for a break :smile:
What was it?
Creating a key in production.... and running it in test......
Ah! No worries, happens :slightly_smiling_face:
Indexed 3051 threads
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI