Skip to content

Latest commit

 

History

History
26 lines (24 loc) · 1.06 KB

2022-03-30-fix-async-webhook-dispatching.md

File metadata and controls

26 lines (24 loc) · 1.06 KB
title issue
Fix async webhook dispatching for app lifecycle events
NEXT-20885

Core

  • Changed \Shopware\Core\Framework\Webhook\Handler\WebhookEventMessageHandler to not fail if webhook entity for the received message was deleted in the meantime.
  • Changed \Shopware\Core\Framework\Webhook\WebhookDispatcher to always dispatch AppLifecycleEvents synchronously and to add unique eventId identifier to each webhook.

Upgrade Information

Webhooks contain unique event identifier

All webhooks now contain a unique identifier that allows your app to identify the event. The identifier can be found in the JSON-payload under the source.eventId key.

{
    "source": {
        "url": "http:\/\/localhost:8000",
        "appVersion": "0.0.1",
        "shopId": "dgrH7nLU6tlE",
        "eventId": "7b04ebe416db4ebc93de4d791325e1d9"
    }
}

This identifier is unique for each original event, it will not change if the same request is sent multiple times due to retries, because your app maybe did not return a successful HTTP-status on the first try.