CI-HUB-GmbH / SimpleRESTAdapterBundle

This bundle adds a simple read-only REST API endpoint to Pimcore DataHub for Assets and DataObjects. All exposed data can be configured, is indexed in Elasticsearch and delivered from there for better query performance and scalability.
Other
3 stars 16 forks source link

datahub_es_index_queue needs proper configuration in framework #7

Closed birgerstoeckelmann closed 2 years ago

birgerstoeckelmann commented 2 years ago

Without overwriting the messenger.transports.datahub_es_index_queue configuration in Pimcore's config/config.yaml the messenger throws exceptions for all messages:

Error thrown while handling message Pimcore\Messenger\SearchBackendMessage. Sending for retry #1 using 1000 ms delay. Error: "Bus named "messenger.bus.default" does not exist." ["class" => "Pimcore\Messenger\SearchBackendMessage","retryCount" => 1,"delay" => 1000,"error" => "Bus named "messenger.bus.default" does not exist.","exception" => Symfony\Component\Messenger\Exception\InvalidArgumentException^ { …}]

This configuration works:

framework:   messenger:     transports:       datahub_es_index_queue: "doctrine://default?queue_name=datahub_es_index_queue"

Pimcore: 10.5.2 ci-hub/simple-rest-adapter-bundle: 2.0.1 ci-hub/pimcore-ci-hub-adapter-bundle: 2.0.1 symfony/doctrine-messenger: 5.4.11 elasticsearch: 7.17.1

aarongerig commented 2 years ago

Thanks for reporting this issue! I will take a look at that problem as well.

aarongerig commented 2 years ago

Fixed by https://github.com/CI-HUB-GmbH/SimpleRESTAdapterBundle/commit/17c4425d95e1434be9dbf58101b0811991985309

aarongerig commented 2 years ago

@birgerstoeckelmann I just released v2.0.2, which includes both fixes. Could you verify if that works for you now?

birgerstoeckelmann commented 2 years ago

@aarongerig - yes, both fixes work as expected. Thanks for fixing this so quickly!