Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 BUG: Uncaught Error: Context is not available at getContext #8227

Open
samducker opened this issue Feb 23, 2025 · 0 comments
Open

🐛 BUG: Uncaught Error: Context is not available at getContext #8227

samducker opened this issue Feb 23, 2025 · 0 comments
Labels
bug Something that isn't working

Comments

@samducker
Copy link

Which Cloudflare product(s) does this pertain to?

Workers Runtime

What versions are you using?

3.109.2

What operating system and version are you using?

Mac OS X

Please provide a link to a minimal reproduction

No response

Describe the Bug

When implementing https://hono.dev/docs/middleware/builtin/context-storage#context-storage-middleware with https://developers.cloudflare.com/workers/runtime-apis/nodejs/asynclocalstorage/ and the correct flags listed in the docs I get the error

✘ [ERROR] A request to the Cloudflare API (/accounts/MY_CLOUDFLARE_ID/workers/scripts/d/versions) failed.

  Uncaught Error: Context is not available
    at getContext
  (file:///Users/sam/Documents/GitHub/d/s/node_modules/hono/dist/middleware/context-storage/index.js:12:11)
  in getContext
    at null.<anonymous>
  (file:///Users/sam/Documents/GitHub/d/s/apps/api/src/services/auth/index.ts:14:28)
   [code: 10021]

  
  If you think this is a bug, please open an issue at:
  https://github.com/cloudflare/workers-sdk/issues/new/choose

Have tried locally preview remote and deployed all the same error.

Please provide any relevant error logs

✘ [ERROR] A request to the Cloudflare API (/accounts/MY_CLOUDFLARE_ID/workers/scripts/d/versions) failed.

Uncaught Error: Context is not available
at getContext
(file:///Users/sam/Documents/GitHub/d/s/node_modules/hono/dist/middleware/context-storage/index.js:12:11)
in getContext
at null.
(file:///Users/sam/Documents/GitHub/d/s/apps/api/src/services/auth/index.ts:14:28)
[code: 10021]

If you think this is a bug, please open an issue at:
https://github.com/cloudflare/workers-sdk/issues/new/choose

@samducker samducker added the bug Something that isn't working label Feb 23, 2025
@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working
Projects
Status: Untriaged
Development

No branches or pull requests

1 participant