Patreon API down?

I was wondering if the Patreon API is currently down. I am getting the following error message when I try to retrieve data with the PHP library:

PHP Fatal error:  Uncaught Art4\JsonApiClient\Exception\ValidationException:
Unable to parse JSON data: JSON_ERROR_SYNTAX - Syntax error, malformed JSON in Helper.php:180
Manager.php(84): Art4\JsonApiClient\Utils\Helper::decodeJson('<!DOCTYPE HTML>...')
Manager->parse('<!DOCTYPE HTML>...')

Edit: It looks like Cloudflare has blocked us.

Hi there! We’re looking into this, sorry for the disruption.

1 Like

Hi phildini!

It looks like Cloudflare anti-DDOS was causing the issue for us.

Here’s the exact message that appeared:

Checking your browser before accessing patreon.com.
This process is automatic. Your browser will redirect to your requested content shortly.
Please allow up to 5 seconds.

So our script was fetching the Cloudflare page, instead of the actual JSON data. I believe it’s resolved now that we use CURLOPT_FOLLOWLOCATION to follow the redirect, or maybe you guys solved it.

Either way, thank you for your quick reply.

Hey there! I was going to say “it should be fixed now” but I think we broke it again. It should be fixed soon.

It appears to be working again =)
Thank you!