Skip to content
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

Creating a searchKey throws errors #221

Open
designvoid opened this issue Feb 3, 2020 · 0 comments
Open

Creating a searchKey throws errors #221

designvoid opened this issue Feb 3, 2020 · 0 comments

Comments

@designvoid
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant