Intermittent 419 errors on Coveo Hive search interfaces

In this article

Symptoms

Search interface page users get "419 expired token" errors intermittently.

Cause

You may be caching the /coveo/rest proxy endpoint. Coveo Hive search interfaces perform front-end calls through the /coveo/rest endpoint to generate search tokens. Storing search token call responses in an HTTP cache eventually leads to the retrieval of a Coveo search token that has expired.

Resolution

The issue was resolved in the Coveo for Sitecore August 15, 2022 release (5.0.1153.1). We recommend you upgrade to the latest version of Coveo for Sitecore.

Workaround

Disable /coveo/rest proxy endpoint response caching mechanisms, whether using Cloudflare or other.