LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangGraph
  • Web
  • Channels
  • Pregel
  • Prebuilt
  • Remote
  • Stream
LangGraph SDK
  • Client
  • Auth
  • React
  • Logging
  • React Ui
  • Server
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
LangGraph Checkpoint Redis
  • Shallow
  • Store
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
  • Cli
LangGraph API
LangGraph CLI
LangGraph CUA
  • Utils
LangGraph Supervisor
LangGraph Swarm
⌘I

Chat LangChain

What can I help with?

Enter to send·Shift+Enter new line

Menu

LangGraph
WebChannelsPregelPrebuiltRemoteStream
LangGraph SDK
ClientAuthReactLoggingReact UiServer
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
LangGraph Checkpoint Redis
ShallowStore
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
Cli
LangGraph API
LangGraph CLI
LangGraph CUA
Utils
LangGraph Supervisor
LangGraph Swarm
Language
Theme
JavaScript@langchain/langgraphwebNodeTimeoutError
Class●Since v1.4

NodeTimeoutError

Raised when a node invocation exceeds one of its configured timeouts.

Does not extend GraphBubbleUp (so it flows through the normal node error path) and is intentionally treated as retryable by the default retry policy — its message/name do not match the default retryOn blocklist, so a configured RetryPolicy will retry it (see langchain-ai/langgraph#7659).

Both NodeTimeoutError.runTimeout and NodeTimeoutError.idleTimeout reflect the configured policy at the time of the failure (each undefined if not configured). NodeTimeoutError.kind and NodeTimeoutError.timeout identify which one fired.

Copy
class NodeTimeoutError

Bases

BaseLangGraphError

Constructors

constructor
constructor→ NodeTimeoutError

Properties

property
cause: unknown
property
elapsed: number

Elapsed time (ms) since the attempt started, at the moment the timeout fired.

property
idleTimeout: number

Configured idle timeout (ms), if any.

property
kind: "run" | "idle"

Which timeout fired: a hard "run" cap or a progress-resetting "idle" cap.

property
lc_error_code: string
property
message: string
property
name: string
property
node: string

Name of the node/task that timed out.

property
runTimeout: number

Configured run timeout (ms), if any.

property
stack: string
property
timeout: number

The value (ms) of the timeout that fired (runTimeout or idleTimeout).

property
stackTraceLimit: number
property
unminifiable_name: string

Methods

method
captureStackTrace
method
prepareStackTrace

Inherited fromBaseLangGraphError

Properties

PcausePlc_error_code: stringPmessagePname: stringPstackPstackTraceLimit

Methods

McaptureStackTraceMprepareStackTrace
View source on GitHub