Skip to content

fix(ci): switch Algolia reindex to crawler v1 API#444

Merged
elibosley merged 1 commit intomainfrom
codex/fix-algolia-crawler-api
Apr 1, 2026
Merged

fix(ci): switch Algolia reindex to crawler v1 API#444
elibosley merged 1 commit intomainfrom
codex/fix-algolia-crawler-api

Conversation

@elibosley
Copy link
Copy Markdown
Member

Summary

  • switch the Algolia reindex workflow from legacy api/user_configs endpoints to the working api/1/crawlers endpoints
  • remove the unsupported appID query parameter from the crawler list call
  • update the README so it documents the actual API flow the workflow now uses

Root Cause

The existing workflow used the legacy crawler endpoints and old response shape:

  • GET /api/user_configs?appId=...
  • POST /api/user_configs/<id>/reindex
  • parsing .data[]

Direct validation with the crawler credentials showed:

  • legacy GET /api/user_configs?... returned 401 Unauthorized
  • versioned GET /api/1/crawlers?name=unraid&itemsPerPage=10 returned 200
  • versioned GET /api/1/crawlers/<id> returned 200

That means the crawler credentials are valid, but only for the v1 API surface this workflow now uses.

Validation

  • confirmed the crawler list call succeeds on GET https://crawler.algolia.com/api/1/crawlers?name=unraid&itemsPerPage=10
  • confirmed crawler details succeed on GET https://crawler.algolia.com/api/1/crawlers/5d4585bd-317c-4b04-b879-cb35899d9868
  • triggered a live reindex on POST https://crawler.algolia.com/api/1/crawlers/5d4585bd-317c-4b04-b879-cb35899d9868/reindex
  • confirmed the crawler entered reindexing=true

Notes

I did not run a full docs build. The repo instructions explicitly prefer targeted validation for this kind of change.

- Purpose: make the Algolia reindex workflow authenticate and trigger reindexing with the credentials currently issued for this crawler.
- Before: the workflow called legacy /api/user_configs endpoints and parsed the old .data[] response shape.
- Problem: direct validation with the crawler credentials returned 401 Unauthorized on the legacy endpoint, so the GitHub Action failed before it could resolve the crawler or queue a reindex.
- Change: switch the workflow to /api/1/crawlers endpoints, remove the unsupported appID query parameter, read crawler details from the v1 response, and consume the returned taskId when triggering reindex.
- Documentation: update the README so it documents the actual API flow used by the workflow and no longer points readers at the legacy endpoint.
- Validation: confirmed the credentials can list the crawler and fetch crawler details via the v1 API, and confirmed a live reindex request was accepted and the crawler entered reindexing=true.
@elibosley elibosley merged commit 58a9dbf into main Apr 1, 2026
0 of 2 checks passed
@elibosley elibosley deleted the codex/fix-algolia-crawler-api branch April 1, 2026 21:07
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

Successfully merging this pull request may close these issues.

1 participant