We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59fa0e2 commit f2d139aCopy full SHA for f2d139a
EMS/client-helper-bundle/src/Helper/Webhook/WebhookHelper.php
@@ -42,7 +42,7 @@ private function validateWebHookCall(Request $request): void
42
$subscriptionId = Type::string($request->headers->get(Headers::X_WEBHOOK_SUBSCRIPTION_ID));
43
$secret = $this->cacheManager->getItem(\sprintf('webhook_secret_%s', $subscriptionId));
44
if (!$secret->isHit()) {
45
- throw new GoneHttpException('Unknown webhook subscription');
+ throw new GoneHttpException(\sprintf('Unknown webhook subscription %s', $subscriptionId));
46
}
47
$hash = \hash_hmac('sha256', Type::string($request->getContent()), Type::string($secret->get()));
48
if ($hash !== $signature) {
0 commit comments