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

**Code:** `api.wordpress.org` · **Category:** WordPress · **Seen on:** WordPress

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

## 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?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/wordpress/wp-could-not-resolve-host-api-wordpress-org)
