scout-extended icon indicating copy to clipboard operation
scout-extended copied to clipboard

Creating a searchKey throws errors

Open designvoid opened this issue 5 years ago • 0 comments

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?

designvoid avatar Feb 03 '20 17:02 designvoid