fix(ocm): Correctly track OCM requests

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2026-04-13 17:26:42 +02:00
parent 27f1bb1599
commit f4f93ed281
No known key found for this signature in database
GPG key ID: F72FA5B49FFA96B0

View file

@ -62,7 +62,9 @@ class OCMRequestController extends Controller {
$signedRequest = $this->ocmDiscoveryService->getIncomingSignedRequest();
} catch (IncomingRequestException $e) {
$this->logger->warning('incoming ocm request exception', ['exception' => $e]);
return new JSONResponse(['message' => $e->getMessage(), 'validationErrors' => []], Http::STATUS_BAD_REQUEST);
$response = new JSONResponse(['message' => $e->getMessage(), 'validationErrors' => []], Http::STATUS_BAD_REQUEST);
$response->throttle();
return $response;
}
// assuming that ocm request contains a json array