Coveo for Salesforce Free Error Messages

This page presents the possible JWT errors and JWT flow failed exceptions possible with Coveo for Salesforce Free, as well as how to fix them.

Configure Your Coveo for Salesforce

While this is not a JWT error, this error means that your Coveo for Salesforce package is not linked to a Coveo Cloud organization. While you do not have an index in Coveo Cloud when using the Coveo for Salesforce Free edition, you still need a Coveo Cloud organization (see Understanding the Coveo for Salesforce Free Edition Architecture).

To connect your Coveo for Salesforce package to a Coveo Cloud organization, see Configuring the Coveo for Salesforce Application.

User Hasn’t Approved This Consumer

{
  "status": 400,
  "message": "The JWT flow failed for user YourUser@salesforce.com (user hasn't approved this consumer)",
  "type": "JwtFlowFailedException",
  "name": "JwtFlowFailedException"
  ...
}

This error happens when you have started to allow user impersonation, but have forgotten to grant Coveo access to all pre-authorized users.

To fix this issue, follow the steps from Allowing User Impersonation.

User Is Not Admin Approved to Access This App

{
  "message": "Request Error : The JWT flow failed for user YourUser@salesforce.com (user is not admin approved to access this app)",
  "status": 400,
  "type": "Ajax Error (status: 400)",
  "name": "Ajax Error (status: 400)"
}

This error happens when you have allowed a profile or permission set access to your search component, but not to the connected app.

To fix this error, you first need to know if the profile or permission set that gets this error should have access to the search component in the first place.

Error While Performing JWT Flow for the Requested User

{
  "message": "Request Error : Error while performing JWT flow for the requested user.",
  "status": 400,
  "type": "Ajax Error (status: 400)",
  "name": "Ajax Error (status: 400)"
}

This error can happen for different reasons. To learn the possible causes and solutions, see Error While Performing JWT Flow for the Requested User When Using Customer Community or Portal User With the Coveo for Salesforce Free Edition.

You Must Provide Credentials to Perform This Operation

{
  "status": 401,
  "message": "You must provide credentials to perform this operation",
  "type": "NoAuthenticationException",
  "name": "NoAuthenticationException",
  "queryExecutionReport": [
    {}
  ]
}

This error happens when the Coveo Cloud organization you were connected to was deleted, or if you had an organization that had a trial period that expired.

To fix this issue, create a new Coveo Cloud organization by reconfiguring your Coveo for Salesforce package (see Configuring the Coveo for Salesforce Application).

Error When SSL Certificate Is Not Trusted

{
"message": "Request Error : java.net.ConnectException: General SSLEngine problem",
"status": 400,
"type": "Ajax Error (status: 400)",
"name": "Ajax Error (status: 400)"
}

This error happens when accessing a search page with an invalid SSL certificate.

To fix this issue, you have to validate that your SSL certificate is trusted (see SSL Server Test).