Indexing errors with status 400 not logged

Created on 4 May 2023, over 1 year ago
Updated 29 November 2023, 12 months ago

Indexing errors which have status 400 are not logged because the code tests for >400 instead of >=400 (SearchApiElasticsearchBackend.php:505)

Example of such an error:

'status' => 400,
'error' => [
  'type' => 'mapper_parsing_exception',
  'reason' => 'failed to parse field [geolocation] of type [geo_point]',
  'caused_by' => [
    'type' => 'illegal_argument_exception',
    'reason' => 'illegal latitude value [50979.0] for geolocation',
  ],
],
πŸ› Bug report
Status

Needs review

Version

7.0

Component

Code

Created by

πŸ‡·πŸ‡΄Romania danb1974

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024