vercel / vercel/workflow

getStepMetadata failing inside of step function

Open
#599 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.4k
Forks
365
Avg merge
2d 11h
Merged PRs (30d)
169

Description

I have started to see the following error message: "Error: getStepMetadata() can only be called inside a step function". However, it IS being called within a step function and it persists in workflow 4.0.1-beta.29

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported getStepMetadata() error with workflow version 4.0.1-beta.29 and a step function. Trace the call from the getStepMetadata entry point and compare the runtime context when it is invoked; done means identifying why a call inside the step is rejected and covering that behavior with a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.