Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Error while processing the queue #911

Open
alexz707 opened this issue Nov 8, 2024 · 1 comment
Open

[Bug]: Error while processing the queue #911

alexz707 opened this issue Nov 8, 2024 · 1 comment

Comments

@alexz707
Copy link

alexz707 commented Nov 8, 2024

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.

Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants