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

AlgoliaSearchError: Invalid Application-ID or API key #220

Closed
DrPitLazarus opened this issue Apr 19, 2018 · 2 comments
Closed

AlgoliaSearchError: Invalid Application-ID or API key #220

DrPitLazarus opened this issue Apr 19, 2018 · 2 comments

Comments

@DrPitLazarus
Copy link

Search does not work on the documentation site. The console shows an AlgoliaSearchError with the message: "Invalid Application-ID or API key".

Steps to replicate

  1. Go to the docs.
  2. Open your browser's devtools and open console.
  3. Type a query into search bar (ex: "model").
  4. After a few seconds, the errors show in console.

Error object

{
    "name": "AlgoliaSearchError",
    "message": "Invalid Application-ID or API key",
    "debugData": [
        {
            "currentHost": "https://bh4d9od16a-dsn.algolia.net",
            "headers": {
                "x-algolia-agent": "Algolia for vanilla JavaScript (lite) 3.24.7;docsearch.js 2.5.2",
                "x-algolia-application-id": "**hidden for security purposes**",
                "x-algolia-api-key": "**hidden for security purposes**"
            },
            "content": "{\"requests\":[{\"indexName\":\"moonjs\",\"params\":\"query=model&hitsPerPage=5\"}]}",
            "contentLength": 74,
            "method": "POST",
            "timeouts": {
                "connect": 1000,
                "complete": 2000
            },
            "url": "/1/indexes/*/queries",
            "startTime": "2018-04-18T23:45:59.871Z",
            "endTime": "2018-04-18T23:46:00.871Z",
            "duration": 1000
        },
        {
            "currentHost": "https://bh4d9od16a-2.algolianet.com",
            "headers": {
                "x-algolia-agent": "Algolia for vanilla JavaScript (lite) 3.24.7;docsearch.js 2.5.2",
                "x-algolia-application-id": "**hidden for security purposes**",
                "x-algolia-api-key": "**hidden for security purposes**"
            },
            "content": "{\"requests\":[{\"indexName\":\"moonjs\",\"params\":\"query=model&hitsPerPage=5\"}]}",
            "contentLength": 74,
            "method": "POST",
            "timeouts": {
                "connect": 8000,
                "complete": 16000
            },
            "url": "/1/indexes/*/queries",
            "startTime": "2018-04-18T23:46:00.872Z",
            "endTime": "2018-04-18T23:46:02.207Z",
            "duration": 1335,
            "statusCode": 403
        }
    ],
    "statusCode": 403
}
@kbrsh
Copy link
Owner

kbrsh commented Jun 23, 2018

Thank you for letting me know! This looks an issue with the recent domain name changes. I'll look into it.

@kbrsh
Copy link
Owner

kbrsh commented Dec 21, 2019

Algolia search was recently removed due to the small API size, I'll reopen if we need to add it again.

@kbrsh kbrsh closed this as completed Dec 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants