Getting 400 bad request error.

Created on 21 October 2024, about 1 month ago

Hey, Thanks for module.
I just installed on my site and added the Zone Id and Authorisation details in config form.
admin/config/cloudflare-purge-form
But it gives the 400 Bad request error.

 
GuzzleHttp\Exception\ClientException: Client error: `POST https://api.cloudflare.com/client/v4/zones/ZONEID/purge_cache` resulted in a `400 Bad Request` response: {"success":false,"errors":[{"code":10000,"message":"Authentication error"}]} in GuzzleHttp\Exception\RequestException::create() (line 111 of /var/www/webroot/ROOT/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php).
🐛 Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

🇮🇳India AnokR

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @AnokR
  • 🇺🇸United States flashwebcenter Austin TX

    Hello,

    A 400 Bad Request error generally means the server cannot process the request because of a client-side issue. Invalid Request Syntax, API Format Mismatch or Authentication Issues. In your case, it's specifically indicating an "Authentication error," meaning the credentials (Zone ID or API token) are likely incorrect or incomplete.

    Fixing the authentication (API token and Zone ID) should usually resolve this kind of issue.

    Best wishes,
    Alaa

  • 🇺🇸United States flashwebcenter Austin TX
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024