vercel / vercel/workflow

Queue environment doesn't match token environment

Open
#421 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

It was working normally before, but after upgrading the workflow version according to the documentation, a queue permission issue occurred.

deploy on vercel with hono.

dependencies version:

  • "@hono/node-server": "^1.19.6",
  • "hono": "^4.10.6",
  • "nitro": "3.0.1-alpha.1",
  • "rollup": "^4.53.3",
  • "workflow": "4.0.1-beta.21"
ForbiddenError: Queue environment doesn't match token environment
    at QueueClient.sendMessage (file:///var/task/node_modules/@vercel/queue/dist/index.mjs:244:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async send (file:///var/task/node_modules/@vercel/queue/dist/index.mjs:1180:18)
    at async Object.queue (file:///var/task/node_modules/@workflow/world-vercel/dist/queue.js:34:31)
    at async file:///var/task/node_modules/@workflow/core/dist/runtime/start.js:53:13
    at async file:///var/task/node_modules/@workflow/core/dist/telemetry.js:76:28
    at async start (file:///var/task/node_modules/@workflow/core/dist/runtime/start.js:11:12)
    at async Array.<anonymous> (file:///var/task/index.mjs:715:2)

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 with the reported stack trace at @workflow/world-vercel/dist/queue.js and @vercel/queue's QueueClient.sendMessage, using the listed workflow, Hono, Nitro, and Rollup versions. Reproduce the deployment on Vercel and inspect how the queue and token environments are selected. Done means the reported deployment can send a queue message without the environment-mismatch ForbiddenError.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.