typescript.grpc_no_deadline
Stability
High
Detects gRPC calls without deadline/timeout configuration.
Why It Matters
Section titled “Why It Matters”Missing gRPC deadlines:
- Requests hang forever — Indefinite wait on slow services
- Resource exhaustion — Connections never released
- Cascading failures — One slow service blocks others
Example
Section titled “Example”// ❌ Before (no deadline)const user = await client.getUser({ id: userId });// ✅ After (with deadline)import { Metadata } from '@grpc/grpc-js';
const deadline = new Date();deadline.setSeconds(deadline.getSeconds() + 5);
const user = await client.getUser( { id: userId }, { deadline });What Unfault Detects
Section titled “What Unfault Detects”- gRPC client calls without deadline option
- Missing timeout in call options
- Streams without timeout configuration
Auto-Fix
Section titled “Auto-Fix”Unfault can add deadline configuration to gRPC calls.