api.wordpress.org WordPress Origin: Application & API OSI layer 7 · Application Last updated 2 Dec 2026

An unexpected error occurred. Something may be wrong with WordPress.org or this server's configuration (cURL error 6/28)

WordPress cannot reach api.wordpress.org for updates, plugin search or Site Health.

Exact message you may see An unexpected error occurred. Something may be wrong with WordPress.orgcURL error 6 api.wordpress.orgCould not resolve host api.wordpress.orgcURL error 28 wordpress
Seen on: WordPress

Meaning

The server blocks outgoing connections, DNS fails or the host's firewall stops cURL. WordPress shows the cURL error number in Site Health.

Common causes

  • DNS resolution failing on the server
  • Outbound firewall or proxy
  • WP_HTTP_BLOCK_EXTERNAL set
  • Old cURL/OpenSSL

⚡ Quick fix

  1. Test from the server: curl -I https://api.wordpress.org
  2. Fix DNS (resolv.conf) or open outbound 443
  3. Remove WP_HTTP_BLOCK_EXTERNAL or whitelist hosts

Detailed fix by platform

wp-config.php

  1. define('WP_HTTP_BLOCK_EXTERNAL', false); and check Tools → Site Health

How to diagnose

  1. Reach — curl works?
  2. DNS — Resolves?
  3. Constant — Block external set?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Application & API. Errors that are often confused with or caused by this one (click to open):

An automated WordPress update has failed — An automated WordPress update has failed to complete - please attempt the update again now (WordPress)An automated WordPres…Another update is currently in progress — WordPress: Another update is currently in progress. (WordPress)Another update is cur…cURL error 6 — cURL error 6: Could not resolve host: api.example.com (PHP)cURL error 6Download failed — WordPress: Download failed. A valid URL was not provided / cURL error 60 / Could not resolve host: downloads.wordpress.org (WordPress)Download failedMaintenance mode — WordPress: Briefly unavailable for scheduled maintenance. Check back in a minute. (WordPress)Maintenance modeThe REST API encountered an error — Site Health: The REST API encountered an error / Your site could not complete a loopback request (cURL error 28) (WordPress)The REST API encounte…Unable to locate WordPress Content directory — Unable to locate WordPress Content directory (wp-content). / Could not copy file (WordPress)Unable to locate Word…api.wordp…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.