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

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
J
Java Code Geeks
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
量子位
T
Tailwind CSS Blog
Vercel News
Vercel News
I
InfoQ
Stack Overflow Blog
Stack Overflow Blog
U
Unit 42
Engineering at Meta
Engineering at Meta
L
LangChain Blog
大猫的无限游戏
大猫的无限游戏
D
Docker
博客园_首页
P
Proofpoint News Feed
月光博客
月光博客
T
The Blog of Author Tim Ferriss
MyScale Blog
MyScale Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Martin Fowler
Martin Fowler
腾讯CDC
N
Netflix TechBlog - Medium
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

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
}