# rpc error: code = DeadlineExceeded desc = context deadline exceeded

- **ID:** `go/grpc-deadline-exceeded`
- **Domain:** go
- **Category:** network_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The RPC call takes longer than the context deadline set by the client.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.6 | active | — | — |

## Workarounds

1. **** (90% success)
   ```
   ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second); defer cancel()
   ```
2. **** (70% success)
   ```
   Profile and optimize the RPC handler to reduce latency.
   ```

## Dead Ends

- **** — Server timeout doesn't affect client-side context deadlines. (70% fail)
- **** — gRPC requires deadlines; disabling can lead to hanging calls. (80% fail)
