Developer Getting Started Guide yields: "There was an uncaught error: The provided API key is invalid." #3156
Replies: 7 comments 5 replies
-
skipping this error, does the server remain active? It's hard to understand, but it doesn't seem to be a MongoDB authentication error. can you try to run LibreChat with the default |
Beta Was this translation helpful? Give feedback.
-
That's weird, I use the setup as described in the guide and have never encountered this. Can you try with the default env setup as shown in |
Beta Was this translation helpful? Give feedback.
-
weird, it's also working fine for me
PS D:\v0.7.4rc1\LibreChat> npm run backend
> [email protected] backend
> cross-env NODE_ENV=production node api/server/index.js
2024-06-21 17:53:44 info: [Optional] Redis not initialized. Note: Redis support is experimental.
2024-06-21 17:53:46 warn: Meilisearch error, search will be disabled
2024-06-21 17:53:47 info: Connected to MongoDB
2024-06-21 17:53:47 error: [indexSync] error fetch failed
2024-06-21 17:53:49 error: Config file YAML format is invalid: ENOENT: no such file or directory, open 'D:\v0.7.4rc1\LibreChat\librechat.yaml'
2024-06-21 17:53:49 warn: Default value for CREDS_KEY is being used.
2024-06-21 17:53:49 warn: Default value for CREDS_IV is being used.
2024-06-21 17:53:49 warn: Default value for JWT_SECRET is being used.
2024-06-21 17:53:49 warn: Default value for JWT_REFRESH_SECRET is being used.
2024-06-21 17:53:49 info: Please replace any default secret values.
2024-06-21 17:53:49 info:
For your convenience, use this tool to generate your own secret values:
https://www.librechat.ai/toolkit/creds_generator
2024-06-21 17:53:49 warn: RAG API is either not running or not reachable at undefined, you may experience errors with file uploads.
2024-06-21 17:53:49 info: Server listening at http://localhost:3080 |
Beta Was this translation helpful? Give feedback.
-
@tony-bpc seems to be an error with codespace, not sure how to solve this |
Beta Was this translation helpful? Give feedback.
-
"The provided API key is invalid." isn't anywhere in the code, so it's from an external connection? Upon searching on google, it seems to be a common "google" API message. Try commenting every variable in the .env that starts with There are no API connections upon startup aside from mongodb that would be initialized, so maybe codespaces has some google analytics built into the environment? |
Beta Was this translation helpful? Give feedback.
-
I also encountered the same issue when cloning the LibreChat space in HuggingFace I followed this guide: https://www.librechat.ai/docs/remote/huggingface |
Beta Was this translation helpful? Give feedback.
-
You can try modifying the
meilisearch:
...
environment:
...
- - MEILI_MASTER_KEY=5c71cf56d672d009e36070b5bc5e47b743535ae55c818ae3b735bb6ebfb4ba63
+ - MEILI_MASTER_KEY=DrhYf7zENyR6AlUCKmnz0eYASOQdl6zxH7s7MKFSfFCt |
Beta Was this translation helpful? Give feedback.
-
What happened?
I followed this guide and am blocked by errors:
https://www.librechat.ai/docs/development/get_started
I tried historical versions resulting in same issue (0.7.2 , 0.6.5)
I created a Mongo DB connection, swapped default credentials, and created clean codespaces. These approaches did not solve the error.
Are others having this issue?
Steps to Reproduce
I used the following commands:
cd LibreChat/
npm ci
npm run frontend
npm run backend
----> error
Also tried:
npm run reinstall
npm run backend
-----> same error
What browsers are you seeing the problem on?
Microsoft Edge
Relevant log output
Screenshots
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions