惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

量子位
博客园_首页
Google DeepMind News
Google DeepMind News
博客园 - Franky
The GitHub Blog
The GitHub Blog
GbyAI
GbyAI
有赞技术团队
有赞技术团队
Microsoft Azure Blog
Microsoft Azure Blog
G
Google Developers Blog
Recent Announcements
Recent Announcements
A
About on SuperTechFans
博客园 - 【当耐特】
博客园 - 三生石上(FineUI控件)
酷 壳 – CoolShell
酷 壳 – CoolShell
美团技术团队
罗磊的独立博客
IT之家
IT之家
博客园 - 聂微东
Stack Overflow Blog
Stack Overflow Blog
Jina AI
Jina AI
腾讯CDC
P
Proofpoint News Feed
Hugging Face - Blog
Hugging Face - Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

Workflow SDK Documentation

Patterns for Defining Tools Human-in-the-Loop Building Durable AI Agents Queueing User Messages Resumable Streams Sleep, Suspense, and Scheduling Streaming Updates from Tools API Reference Workflow Globals Changelog Resilient run start Cookbook Building a World Deploying Astro Express Fastify Hono Getting Started NestJS Next.js Nitro Nuxt Python SvelteKit Vite corrupted-event-log fetch-in-workflow hook-conflict Errors
StepNotRegisteredError
2026-05-31 · via Workflow SDK Documentation

Thrown when a step function is not registered in the current deployment.

StepNotRegisteredError is thrown when the runtime tries to execute a step function that is not registered in the current deployment. This is an infrastructure error — not a user code error. It typically indicates a build or bundling issue that caused the step to not be included in the deployment.

When this error occurs, the step fails (like a FatalError) and control is passed back to the workflow function, which can handle the failure gracefully.

import { StepNotRegisteredError } from "workflow/errors"
declare const error: unknown; // @setup

if (StepNotRegisteredError.is(error)) { 
  console.error("Step not registered:", error.stepName);
}

Properties

NameTypeDescription
stepNamestringThe name of the step function that was not found.
messagestringThe error message.

Static Methods

StepNotRegisteredError.is(value)

Type-safe check for StepNotRegisteredError instances. Preferred over instanceof because it works across module boundaries and VM contexts.

The .is() method works in server-side Node.js code (API routes, middleware, hooks). Inside "use workflow" functions, step errors arrive deserialized from the event log and won't be actual StepNotRegisteredError instances — use error.message matching instead. See the troubleshooting page for workflow-side error handling examples.

import { StepNotRegisteredError } from "workflow/errors"
declare const error: unknown; // @setup

if (StepNotRegisteredError.is(error)) {
  // error is typed as StepNotRegisteredError
}