# cURL error 28: Operation timed out after 30001 milliseconds with 0 bytes received

**Code:** `cURL error 28` · **Category:** PHP · **Seen on:** PHP

A PHP cURL (or Guzzle) request timed out before the remote server answered.

## Meaning

Error 28 is cURL’s timeout. “0 bytes received” usually means the connection was never answered (firewall, wrong host); a partial byte count means the server was too slow.

## Common causes

- Remote API slow or down
- Outbound firewall on the host blocking the port
- DNS slow
- Timeout set very low

## Quick fix

1. Test reachability from the server with curl on the command line
2. Set sensible CURLOPT_CONNECTTIMEOUT and CURLOPT_TIMEOUT
3. Retry idempotent calls with backoff

## Detailed fix by platform

### PHP

1. Guzzle: `new Client(['connect_timeout' => 5, 'timeout' => 20])`

## How to diagnose

1. **Bytes** — 0 bytes (no answer) or partial (slow)?
2. **Reachability** — curl from the same server

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/php/curl-error-28-timed-out)
