adyen-magento2
adyen-magento2 copied to clipboard
Webhooks failing with Maximum Line Length Limit Exceeded
Describe the bug Webhooks were failing with an error "Maximum line length limit exceeded" within the Adyen dashboard under developers > webhooks > troubleshoot.
The issue turned out to be due to the length of the content-security-policy/content-security-policy-report-only response header body from the adyen/process/json
request
Unclear as to whether the change that caused the problem was on the Adyen side or whether it's just come to light as the merchant in question had a large set of Content security policies.
This also seemed to only be affecting Klarna/PayPal orders.
To Reproduce Steps to reproduce the behavior: 1 - Setup a Magento/Adobe Commerce instance with a large set of content security policies 2 - Test Webhook from Adyen dasbhoard 3 - Get Maximum Line Length Limit Exceeded error message
Expected behavior No errors handling notification webhooks no matter on the size of the content-security-policy response headers
Magento version v2.4.5.-p1
Plugin version v8.3.2
Adyen Support Ticket - #3448958