Purge_cache API end point suddenly giving me 504 Gateway time-out

This has been working perfectly fine for me until today.

When I try to purge the cache for a specific file, today, I started getting this error after a few seconds:

Error 504 Ray ID: XXXXXXXXX • 2019-11-14 22:03:51 UTC

Gateway time-out

You

Browser

Working

(Location)

Cloudflare

Working

api.cloudflare.com

I have tested this with multiple files using both Postman as well as cURL:

curl -X POST “https://api.cloudflare.com/client/v4/zones/ZONEID/purge_cache” -H “Authorization: Bearer TOKEN” -H “Content-Type: application/json” --data ‘{“files”:[“https://MYURL”]}’