gRPC
4 DEADLINE_EXCEEDED
The deadline expired before the operation could complete. For operations that change the state of the system, this error may be returned even if the operation has completed successfully.
Quando você vê este código
The RPC took longer than the configured deadline allows. Common in slow network conditions, overloaded servers, or when the deadline is set too aggressively.
Como corrigir
Increase the client deadline, optimize the server-side processing, or add server-side caching. If the operation might have succeeded, check idempotency before retrying.
Especificação
Ver RFC / Especificação →Equivalentes entre protocolos
Comparações
Guias
Choosing the Right HTTP Status Codes for REST APIs
API Design
gRPC Status Codes: A Practical Guide
API Design
Debugging Timeout Errors: 408 and 504
Debugging & Troubleshooting
How to Implement and Handle Rate Limiting (429)
API Design
API Versioning Strategies: URL, Header, and Query Param
API Design
Designing Consistent API Error Responses
API Design
API Keys vs OAuth vs JWT: Choosing the Right Auth Method
Security & Authentication