I'm currently trying to implement a payment system using Stripe. After a payment, Stripe sends a webhook containing information about the purchase. However, before even a single line of php code is executed (the first line is a log, which doens't execute), it throws an error. My server gives "AH01225: Error reading request entity data" and Stripe receives error 400 with response "Invalid encoding: ISO-8859-1".
I have narrowed the problem down a bit. When I make a post request to my endpoint containing the same body as the failed webhook, I do get the same errors. After removing the two json elements containing emails (as strings) it works fine.
Inside my .htaccess file I have the line "AddDefaultCharset utf-8", so I don't get where it gets the encoding error from.
The weird thing is, is that it all of a sudden it worked for like 2 days. But now, without changing anything that I can think of that could influence this, it stopped working.