Troubleshooting Scoped API Keys Creation Issue in Typesense Cloud
TLDR Henrik is having trouble creating scoped API keys for a client using Typesense Cloud. Jason is unsure if the number of collections could be causing the issue and has requested more information.
Oct 30, 2023 (1 month ago)
We currently facing issues with creating scoped API keys for the client. We are using Typesense Cloud and we use the following flow:
• User requests our backend with JWT token (authenticate the user in our system)
• We call the Typesense API to create the scoped API key (scoped to collections of this user)
• API key is returned back to the client and can be used to access the Typesense API
In the step of calling the Typesense API, we are periodically receiving an HTTP error.
One thing that might be special: We multiple thousand collections in the cluster itself. Is it possible that this is the reason for the failing API key creation ?
May I know the exact HTTP error and response body you're seeing?
Indexed 3011 threads (79% resolved)
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.
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.
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.