website icon indicating copy to clipboard operation
website copied to clipboard

Search is not working on the documentation website

Open Gregory-Gerard opened this issue 10 months ago • 1 comments

Bug report

Current Behavior

The documentation site's search functionality is not working. When attempting to search, the request fails with a 403 error indicating invalid Algolia credentials:

{
    "message": "Invalid Application-ID or API key",
    "status": 403
}
Full stacktrace

{
    "name": "ApiError",
    "message": "Invalid Application-ID or API key",
    "status": 403,
    "transporterStackTrace": [
        {
            "request": {
                "data": "{\"requests\":[{\"indexName\":\"docs\",\"query\":\"test\",\"params\":\"hitsPerPage=50&attributesToRetrieve=%5B%22type%22%2C%22url%22%2C%22hierarchy.lvl0%22%2C%22hierarchy.lvl1%22%2C%22hierarchy.lvl2%22%2C%22hierarchy.lvl3%22%2C%22hierarchy.lvl4%22%2C%22content%22%5D&attributesToSnippet=%5B%22hierarchy.lvl0%3A15%22%2C%22hierarchy.lvl1%3A15%22%2C%22hierarchy.lvl2%3A15%22%2C%22hierarchy.lvl3%3A15%22%2C%22hierarchy.lvl4%3A15%22%2C%22content%3A15%22%5D&snippetEllipsisText=%E2%80%A6&highlightPreTag=__aa-highlight__&highlightPostTag=__%2Faa-highlight__\"}]}",
                "headers": {
                    "content-type": "application/x-www-form-urlencoded"
                },
                "method": "POST",
                "url": "https://VXVOLU3YVQ-dsn.algolia.net/1/indexes/*/queries?x-algolia-agent=Algolia%20for%20JavaScript%20(4.24.0)%3B%20Browser%20(lite)&x-algolia-api-key=9d44395c1b7b172ac84b7e5ab80bf8c5&x-algolia-application-id=VXVOLU3YVQ",
                "connectTimeout": 1,
                "responseTimeout": 2
            },
            "response": {
                "status": 0,
                "content": "Connection timeout",
                "isTimedOut": true
            },
            "host": {
                "protocol": "https",
                "url": "VXVOLU3YVQ-dsn.algolia.net",
                "accept": 1
            },
            "triesLeft": 3
        },
        {
            "request": {
                "data": "{\"requests\":[{\"indexName\":\"docs\",\"query\":\"test\",\"params\":\"hitsPerPage=50&attributesToRetrieve=%5B%22type%22%2C%22url%22%2C%22hierarchy.lvl0%22%2C%22hierarchy.lvl1%22%2C%22hierarchy.lvl2%22%2C%22hierarchy.lvl3%22%2C%22hierarchy.lvl4%22%2C%22content%22%5D&attributesToSnippet=%5B%22hierarchy.lvl0%3A15%22%2C%22hierarchy.lvl1%3A15%22%2C%22hierarchy.lvl2%3A15%22%2C%22hierarchy.lvl3%3A15%22%2C%22hierarchy.lvl4%3A15%22%2C%22content%3A15%22%5D&snippetEllipsisText=%E2%80%A6&highlightPreTag=__aa-highlight__&highlightPostTag=__%2Faa-highlight__\"}]}",
                "headers": {
                    "content-type": "application/x-www-form-urlencoded"
                },
                "method": "POST",
                "url": "https://VXVOLU3YVQ-2.algolianet.com/1/indexes/*/queries?x-algolia-agent=Algolia%20for%20JavaScript%20(4.24.0)%3B%20Browser%20(lite)&x-algolia-api-key=9d44395c1b7b172ac84b7e5ab80bf8c5&x-algolia-application-id=VXVOLU3YVQ",
                "connectTimeout": 4,
                "responseTimeout": 8
            },
            "response": {
                "content": "{\"message\":\"Invalid Application-ID or API key\",\"status\":403}",
                "status": 403,
                "isTimedOut": false
            },
            "host": {
                "protocol": "https",
                "url": "VXVOLU3YVQ-2.algolianet.com",
                "accept": 3
            },
            "triesLeft": 2
        }
    ]
}

Expected behavior

The search functionality should work properly, allowing users to search through the documentation.

Reproducible example

  1. Go to any page on the Radix UI documentation site (primitives section)
  2. Click the search box or use the keyboard shortcut to open search
  3. Try to type any search term
  4. The search fails to return results due to invalid Algolia credentials

Your environment

Software Names(s) Version
Browser Arc Version 1.87.1 (60573) - Chromium Engine Version 134.0.6998.166
Operating System macOS 15.3.1 (24D70)

Gregory-Gerard avatar Apr 04 '25 09:04 Gregory-Gerard

I’d like to work on this issue — it’ll be my first one!

It looks like the Algolia search isn’t working because the App ID or API key in the frontend config might be invalid or outdated. The browser shows a RetryError and a 403 error from Algolia, which usually means the credentials aren't correct or the index doesn’t exist.

I’ll check and update the Algolia config (App ID, API key, and index name), and make sure the selectors in the DocSearch config match the HTML structure of the docs. If needed, I’ll help reapply for DocSearch to get the crawler working again.

Let me know if it’s okay to proceed. Thanks!

Praneshxo avatar May 26 '25 03:05 Praneshxo