algoliasearch-client-javascript icon indicating copy to clipboard operation
algoliasearch-client-javascript copied to clipboard

Invalid Application-ID or API key

Open KevinOl opened this issue 6 years ago • 3 comments

algoliasearch version 4.2.0

I am using it on a search result page in order to retrieve and show the hits. However, whenever I load the page or refresh it, I get a 403 forbidden message for the request along side this 'Invalid Application-ID or API key'.

It is not always happening but just 'random'. At first I used the one provided in dashboard but then decided to create a custom api search key. Same. I did not restrict access to it. eg. number of call per hour...

Not sure what to do. This is not good if a user has to refresh the page a couple of times before hopefully seeing the results ;)

KevinOl avatar May 21 '20 06:05 KevinOl

Still experiencing this issue...idea? help? anybody?

KevinOl avatar May 29 '20 23:05 KevinOl

Can you share the environment? Also, when you have the error, can you share the exact error object?

nunomaduro avatar May 30 '20 00:05 nunomaduro

Hi,

actually I think I found out why it is not working.

The request to algolia is intercepted by Ghostery and the x-algolia-application-id is modified. Now not sure how Ghostery works and it does not modify the x-algolia-application-id every time.

Anyway, I disabled it and results are fetched without errors.

KevinOl avatar May 30 '20 20:05 KevinOl