meilisearch / strapi-plugin-meilisearch

A strapi plugin to add your collections to Meilisearch
https://meilisearch.com
MIT License
223 stars 58 forks source link

Error: "Authorization header is missing" #946

Closed jacobhytter closed 3 months ago

jacobhytter commented 3 months ago

Description When trying to add a collection to my index i get this error: "The Authorization header is missing. It must use the bearer authorization method." image

Expected behavior Uploading the collection.

Current behavior Error message with MEILISEARCH_API_KEY https://www.meilisearch.com/docs/reference/errors/error_codes#missing_authorization_header

Environment (please complete the following information):

curquiza commented 3 months ago

Hello @jacobhytter

Can you let me know which version of Meilisearch you use? https://www.meilisearch.com/docs/reference/api/version#get-version-of-meilisearch

jacobhytter commented 3 months ago

{ "commitSha": "0df84bbba7db46680e83843dd6454257161a282f", "commitDate": "2024-06-27T12:47:08.000000000Z", "pkgVersion": "1.9.0" }

jacobhytter commented 3 months ago

I have tested to use master-key and public-key and private-key here: image

It is populated with the correct api-key.

jacobhytter commented 3 months ago

@curquiza any ides? do i need to go down to v1.8.1?

jacobhytter commented 3 months ago

I change to 1.8.1 and use the master key as the apikey and now i can push data to the index