Skip to content

typescript.grpc_no_deadline

Stability High

Detects gRPC calls without deadline/timeout configuration.

Missing gRPC deadlines:

  • Requests hang forever — Indefinite wait on slow services
  • Resource exhaustion — Connections never released
  • Cascading failures — One slow service blocks others
// ❌ 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 }
);
  • gRPC client calls without deadline option
  • Missing timeout in call options
  • Streams without timeout configuration

Unfault can add deadline configuration to gRPC calls.