Hi! I’m trying to upgrade 27.1 to 28.0rc30, but ge...
# community-help
d
Hi! I’m trying to upgrade 27.1 to 28.0rc30, but getting weird errors with API Keys on startup:
Copy code
Scoped API keys can only be used for searches.
Error, /status end-point returned bad status code 401
Instance is run in cluster mode, and API key is provided through environmental variable (TYPESENSE_API_KEY)
k
The first error message happens when a bad API key is used for searching. Second one indicates that the API key used to bootstrap the node is not matching for the already running node's API key. I wonder if there is any regression to the environment variable parsing logic because this definitely doesn't affect passing my configuration file or cli since we have many users using recent RC builds on Typesense cloud. I'll check.
d
API tokens which are set explicitly through API are working as expected The first error is produced by internals as well (probably inter-cluster communication), no external requests with this API key was made
k
Started a node like this locally and it works fine when I query with API key as `abcd`:
Copy code
TYPESENSE_API_KEY=abcd ./bazel-bin/typesense-server --data-dir=/tmp/data2
Ok i found the issue
🙌 1
Indeed there's a regression with handling environment variables.
Will have a fixed build later. Will post in this thread once it's ready.
d
Thanks!
k
Fixed in
28.0.rc32