Error creating Index

Created on 19 May 2025, 2 months ago

Hi,

Let me start by saying that I selected the Component User interface although I'm not sure if that was the right choice.

I have a site currently running Drupal 9.5.11 and Search API 8.x-1.30 and algoliasearch-client-php 3.3.2. I have an index that was created on the Algolia website prior to doing anything on my Drupal site. My Algolia Application ID and Search API Key are configured in your module.

I was able to add a server with no problems. When I tried to add an index I received the following error:

Algolia\AlgoliaSearch\Exceptions\NotFoundException: Index prod_sbm_content does not exist in Algolia\AlgoliaSearch\RetryStrategy\ApiWrapper->handleResponse() (line 217 of /code/vendor/algolia/algoliasearch-client-php/src/RetryStrategy/ApiWrapper.php).

(The index named in the error does exist on Algolia although it's displayed there as prod_SBA_content. )

However, when I returned to the Search API configuration page on my site it showed the index as having been created and ready for further action. At this point I'm not sure if it wise to proceed.

Can you tell me what may have been the reason for the error and whether I can ignore it or not?

Thank you.

πŸ’¬ Support request
Status

Active

Version

3.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States bill_redman

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @bill_redman
  • πŸ‡ΊπŸ‡ΈUnited States bill_redman

    UPDATE: The error noted in this post was a result of the index name on Algolia contained some uppercase letters whereas on Drupal the name was all lowercase. I did not realize that earlier. However, when I tried to 'Index now' I received the following error:

    Algolia\AlgoliaSearch\Exceptions\BadRequestException: Not enough rights to delete an object near line:1 column:82 in Algolia\AlgoliaSearch\RetryStrategy\ApiWrapper->handleResponse() (line 219 of /code/vendor/algolia/algoliasearch-client-php/src/RetryStrategy/ApiWrapper.php).
    

    Could you tell me what may be wrong?

  • πŸ‡ΊπŸ‡ΈUnited States bill_redman
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024