Problem/Motivation

Having followed the README in the module, when trying to index, I get a 412 Precondition Failed error.

Client error: "PUT https://api.cloud.coveo.com/push/v1/organizations/{orgID}/sources//documents/batch?fileId=aad00498-2432-44b9-a611-2d0ead1827fc" resulted in a "412 Precondition Failed" response

Steps to reproduce

1. Follow the steps in the README
2. try to index content

Under Create a Coveo server instances in Search API, it mentions two fields:

"Push API Key"
"Search API Key"

However, the form only has one field: "Query/Search API Key"

Proposed resolution

update documentation

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork coveo-3539117

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

malcomio created an issue. See original summary.

malcomio’s picture

Issue summary: View changes

This was happening because I hadn't configured the Source ID for the organization - after adding that, I was able to index content.

The documentation should be updated to explain about adding an organization in Drupal.

malcomio’s picture

Status: Active » Needs review

neclimdul’s picture

I see, organization is required but SourceID isn't required on the organization. That's sort of by design since you might be using the organization only for atomic or something and not pushing Documentation looks good and I'll look at improving the UI to filter the select list or provide some warnings about invalid states.

  • neclimdul committed 2052940f on 2.x
    Add some search api safeguards around source id
    
    Helps guard against 412...
neclimdul’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.