Events are not working

Hi there,
I’m having a hard time receiving events for my project.

The Debugger view indicates an error: “Failed to retrieve events from the Insights API. This could be due to a transient network error. Retrying in a few seconds…”

When sending my events I get a 200/OK response from the InsightsClient so there’s not much to debug there. I’m using an API key with search permissions.

Thanks,

@Pixelshaped if you check the network tab of your browser do you see any failed requests? If so, what are the reasons for the failure (timeout, blocked, etc)?

Would you happen to have an adblocker/tracker blocker that could be blocking the network requests to our API? If so, you may need to whitelist the domains being blocked.

No adblocker present + request is done through the backend. I see no info.
Although if I breakpoint I can see that the chosen server for insights is US and I’m EU-West. Might that be the issue?

Screenshot from 2022-11-14 19-57-55
Here’s what I get in ApiWrapper::request. Seems smelly that it sends the event to insights.us.algolia.io when I’m on an EU server. But that might be a wrong lead as I can’t find a list of valid regions and can’t ping insights.eu.algolia.io or insights.eu-west.algolia.io.

Edit:
Retried directly from postman with

click event:

{"events":[{"objectIDs":["6500"],"eventType":"click","eventName":"product_clicked","index":"dev_shopping_index_fr","userToken":"55"}]}

OR
click from search event:

{"events":[{"objectIDs":["6500"],"positions":[1],"queryID":"06a67434faf6c18e3dd7b83027c612cb","eventType":"click","eventName":"product_clicked","index":"dev_shopping_index_fr","userToken":"55"}]}

Directly to https://insights.algolia.io/1/events also end up in 200/OK. But still nothing on the Dashboard…

Also tried making a new project but the same error “Failed to retrieve events from the Insights API. This could be due to a transient network error. Retrying in a few seconds…” showed up.

Seeing that the issue arose in a narrow timeframe for another chap: Algolia Insights - no events in debugger I’d say something may be broken on your side.

Still in need of help.