scout-extended
scout-extended copied to clipboard
Creating a searchKey throws errors
Hi there,
I am trying to create a search key by doing the following:
$searchKey = Algolia::searchKey(Property::class);
And am running into this error:
Algolia\AlgoliaSearch\Exceptions\BadRequestException
Invalid Application-ID or API key
If I use the client directly I can list indicies aok and all my syncing etc is working fine so I know my details in my env file are all aok.
I did notice this in the Algolia docs:
This is a private API key. Please keep it secret and use it ONLY from your backend: this key is used to create, update and DELETE your indices. You CANNOT use this key manage your API keys.
Could this be the issue?