Skip to content

Prevent 422 Insights Event - Instant Search Click #1770

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

PromInc
Copy link
Contributor

@PromInc PromInc commented Jun 24, 2025

Prevent http status code 422 from Instant Search Insights click events due to a missing index name

The Algolia event debugger shows error events with a 422 status code from Instant Search click insights events due to a missing index field.

Summary

Bug Fix: Clicking a hit on the Instant Search results page does not pass the index to the insights click event thus creating a 422 status code.

This relates to PR #1763

Result

  1. Open the dev tools to the Network tab
  2. Click the Preserve Log check box
  3. Go to the homepage of the Algolia search powered website
  4. Search for any search term and press Enter to go to the Instant Search results page
  5. Click on any product on the Instant Search results page
  6. In the Network panel, select All and filter by: insights.algolia.io
  7. Look at the requests, viewing the Payload tab. Expand the Request Payload for an event where the eventType = click
  8. If the bug is fixed, we should see the index property with the correct index name as the value.

Prevent http status code 422 from Instant Search Insights click events due to a missing index name
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