data-hub icon indicating copy to clipboard operation
data-hub copied to clipboard

[Bug]: Error while processing the queue

Open alexz707 opened this issue 1 year ago • 1 comments

Expected behavior

Queue handling without errors

Actual behavior

Queue is processed with errors. As soon as the error occurs the processing stops. Not sure if it is a misconfiguration or a problem with the index.

Steps to reproduce

Use exported data: datahub_simpleRest_rest_test_export.json

Execute the following commands:

bin/console datahub:simple-rest:create-or-update-mapping bin/console datahub:simple-rest:init-index

bin/console datahub:simple-rest:process-queue

`ERR 13:17:51 WARNING [pimcore.opensearch.default] Request Failure: [ "method" => "POST","uri" => "https://qa-opensearch:9200/enterprise_simple_rest__ci-hub-endpoint__asset/_doc/429", "port" => 9200, "headers" => [ "Host" => ["qa-opensearch"], "Content-Type" => ["application/json"], "Accept" => ["application/json"], "User-Agent" => ["opensearch-php/2.3.1 (Linux 6.1.0-13-amd64; PHP 8.2.20)"]], "HTTP code" => 400, "duration" => 0.000802, "error" => "{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Could not dynamically add mapping for field [title.en]. Existing mapping for [metaData.title] must be of type object but found [keyword]."}],"type":"mapper_parsing_exception","reason":"Could not dynamically add mapping for field [title.en]. Existing mapping for [metaData.title] must be of type object but found [keyword]."},"status":400}"]

ERR 13:17:51 WARNING [pimcore.opensearch.default] Response ["{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Could not dynamically add mapping for field [title.en]. Existing mapping for [metaData.title] must be of type object but found [keyword]."}],"type":"mapper_parsing_exception","reason":"Could not dynamically add mapping for field [title.en]. Existing mapping for [metaData.title] must be of type object but found [keyword]."},"status":400}"]

ERR 13:17:51 ERROR [pimcore_datahub_simplerest] {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Could not dynamically add mapping for field [title.en]. Existing mapping for [metaData.title] must be of type object but found [keyword]."}],"type":"mapper_parsing_exception","reason":"Could not dynamically add mapping for field [title.en]. Existing mapping for [metaData.title] must be of type object but found [keyword]."},"status":400}`

On the qa system there are still 8 entries which will raise this error and won't be removed from the queue.

alexz707 avatar Nov 08 '24 08:11 alexz707

Thanks a lot for reporting the issue. We did not consider the issue as "Pimcore:Priority", "Pimcore:ToDo" or "Pimcore:Backlog", so we're not going to work on that anytime soon. Please create a pull request to fix the issue if this is a bug report. We'll then review it as quickly as possible. If you're interested in contributing a feature, please contact us first here before creating a pull request. We'll then decide whether we'd accept it or not. Thanks for your understanding.

github-actions[bot] avatar Nov 29 '24 07:11 github-actions[bot]