npx wrangler dispatch-namespace list code: 10121

Hello, I am trying to execute wrangler dispatch-namespace commands (like list or create), but I always get the same error:
workers.api.error.no_access_to_dispatch_namespaces [code: 10121]
workers.api.error.no_access_to_dispatch_namespaces [code: 10121]
are dispatch-namespaces not available for free accounts or am I missing something? I also tried to define a namespace inside the wrangler.toml and execute wrangler deploy of my worker, but it also failed with the same error (it does work without dispatch_namespaces in it) #workers-help Thanks.
7 Replies
Chaika
Chaika6mo ago
Right, Dispatch namespaces are for Workers for Platforms which is its own sub
Chaika
Chaika6mo ago
under Workers for Platforms in the dash:
No description
Chaika
Chaika6mo ago
you don't need Workers for Platforms if you just want to use normal Workers though, it's a specific offering for deploying customer workers/code
Stavus25
Stavus25OP6mo ago
thanks for the reply, is there any way to make outbound calls "like a server" and read the server side set-cookie header from a normal worker?
Chaika
Chaika6mo ago
fetch and read the response headers?
Stavus25
Stavus25OP6mo ago
I tried, there's no raw headers available (in typescript at least) and when I read the setCookie headers response.headers.getSetCookie() it does not match the same value as with curl/postman's cookies, but if it should work I'll try again
No description
Chaika
Chaika6mo ago
yea it's just the simple header object: https://developer.mozilla.org/en-US/docs/Web/API/Headers Multiple Set-Cookie headers are fine, getSetCookie should work for that use case though
MDN Web Docs
Headers - Web APIs | MDN
The Headers interface of the Fetch API allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing headers from the list of the request's headers.
Want results from more Discord servers?
Add your server