Debugging Typesense API Key Error
TLDR James is getting an error related to the x-typesense-api-key
header in their Typesense project. Harrison suggests passing the API key in the HTTP header, and Jason advises checking the key via curl and possibly closing a duplicate Typesense server.
1
Jan 26, 2022 (24 months ago)
James
12:42 PMx-typesense-api-key
header must be sent" anyone got any idea on how to fix it?Harrison
12:45 PMx-typesense-api-key
header with your api key?James
12:47 PM1
Harrison
12:48 PMHarrison
12:48 PMJames
01:29 PMHarrison
01:32 PMJames
01:42 PMJason
02:06 PMJason
02:06 PMJames
02:23 PMmkdir /tmp/typesense-data
./typesense-server --data-dir=/tmp/typesense-data --api-key=$TYPESENSE_API_KEY --enable-cors and this is the output
Jason
03:12 PMJason
03:13 PMps aux | grep typesense
it will show you the process IDJason
03:13 PMkill <process id>
Jason
04:02 PMTypesense
Indexed 3015 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.
Connection Refused Issue with Typesense and Nginx Reverse Proxy
Karthik experiences a connection refused problem with Typesense and Nginx reverse proxy. Jason helps troubleshoot, but the issue remains unresolved.
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.
Deploying Typesense in GCP Cloud Run
Christian had difficulties obtaining an API key for deploying Typesense in GCP Cloud Run. Kishore Nallan guided on API key creation when setting up Typesense server and suggested checking the Typesense self-hosting guide. Christian decided to run the Typesense in Kubernetes instead of Cloud Run. Nasim thanked Christian for sharing findings.
Resolving Connection Issues on Ubuntu 21.10
Philipe faced a problem with TypeSense running on Ubuntu 21.10. After troubleshooting, Jason and Kishore Nallan suggested a binary to solve the compatibility issue, which resolved the issue.