In the last week, I’ve started seeing errors occuring from my webhook handler failing to parse the body of Patreon webhooks. No changes made to this code, and it has been working fine for ages before this. I am receiving invalid JSON in the webhook payloads but it’s not even happening consistently, as some webhook requests still occasionally arrive with valid JSON. Is there anything that can be done about this?
This affects some webhook posts but not others, correct?
Yes, it seems to be intermittent. It’s happening randomly across a number of different campaigns. Both normal payloads and invalid JSON payloads.
Yes, this is a known issue. The ETA for the fix is not certain yet. For now, try to call the api to get the details of the bad-JSON payload users when you detect a bad payload.