-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The provided API key is invalid. #304
Comments
Hi @K2ouMais, |
I have the same issue when trying to generate indexes. It seems to be coming from here:
With no callback, array_filter only removes the empty entries, but because the Authorization string will have a value ('Bearer') even if the apiKey is null, the Authorization header is still being added. I was able to replicate the error in Postman by adding in the Authorization header with a value of 'Bearer'. Without the authorization header present, calls work fine. This may not be the best way to handle it, but it seemed to fix it for me in the short term.
|
Hi @JodiLWilliams93, |
Hi I am getting this error also, but am on the latest release using Laravel and Scout I have set my env values as fol]lows MEILI_MASTER_KEY=MASTER_KEY
MEILISEARCH_KEY=SEARCH_KY In my meilisearch.toml config I have the master key set as follows
When running
I get the correct keys that I have set in the .env however I always get Is there something I have missed? |
Hello @warmwhisky You should provide the master key (or the other key you want to use) in See: https://www.meilisearch.com/docs/guides/back_end/laravel_scout#configuring-the-laravel-scout-driver Also for your information, we are a small team, so we usually can’t spend much time doing support this specific repo 😢 So, if you want immediate help, we would recommend going to our Discord instead. The community will be able to help you, no matter your question. Thanks for using Meilisearch! |
@curquiza thank you for the pointer. That has got me one step further. However the docs said to never use the master key on the front end search. Anyway now I know. I had an issue with the discord link. It says that my invite is invalid? Edit: I have cleared my cookies for Disord and logged back in. Now the invite works. Thank you. |
yes, use your public key if you are doing front end |
Discord link: https://discord.meilisearch.com/ |
So I am in the discord server and I do not have permission to post. Is there any way I can get help with Edit: I spent two days trying to figure this out. I have now removed the api key so the websites will run. I am migrating servers and just do not have the time to figure it out |
Hello everyone,
after update this package to the newest version all my tests are failing with the following error:
The provided API key is invalid.
Am I missing something?
The MEILISEARCH_KEY is set to null on my config file.
Thank you in advance
The text was updated successfully, but these errors were encountered: