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:
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
Right, Dispatch namespaces are for Workers for Platforms which is its own sub
under Workers for Platforms in the dash:
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
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?
fetch and read the response headers?
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 againyea 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.