Invalid API Key Error with Typesense Docker Image
TLDR Cooper faced an invalid API key error with the Typesense Docker image. Jason explained that scoped API keys only work with parent keys created via the /keys API endpoint.
Powered by Struct AI
1
3
6mo
Solved
Mar 31, 2023 (6 months ago)
Cooper
Cooper
08:01 PMHey all, I am running the latest typesense docker image locally and am getting an invalid api key error when generating a scoped API key in my backend. I set the
Am I able to use scoped API keys in the docker image? Thanks!
--api-key=xyz
in the docker command (also tried --search-only-api-key=abcd
in the docker command, but think that might be deprecated) but still getting this Forbidden - a valid x-typesense-api-key
error in the frontend.Am I able to use scoped API keys in the docker image? Thanks!
Apr 01, 2023 (6 months ago)
Jason
Jason
03:15 AMScoped API keys only work with parent keys that were generated via the /keys api endpoint and not the bootstrap key in the command line.
Apr 03, 2023 (6 months ago)
Cooper
Cooper
03:13 PMGreat thank you!
1
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 2779 threads (79% resolved)
Similar Threads
Issues with Generating Scope API Keys in Python
Danny had issues generating a valid scope API key in a Python GraphQL server. Jason suggested encoding changes and confirmed that the key length varies. Issue unresolved with Python, although JS library worked.
42
17mo
Resolving Issues with Scoped API Keys in Typesense with Golang
Suvarna had problems with generating and using scoped API keys in Typesense with Golang. Several bugs misleading the user were found and fixed by Kishore Nallan.
158
26mo
Solved
Generating Scoped API Keys with Typesense Cloud
madhweep asked how to generate scoped api keys with a limit parameter using typesense cloud. Jason guided them to use client libraries for this purpose.
5
23mo
Solved