Dispatch namespace names now follow Worker naming rules
New dispatch namespace names must:
- Use only lowercase letters, numbers, underscores (
_), and dashes (-). - Start with a letter, number, or underscore.
- Be 256 characters or fewer.
Previously, namespace names could contain characters such as /, %, spaces, and uppercase letters. Some of these characters could cause API requests to read, deploy, or delete Workers in the namespace to fail.
What changes:
-
POSTrequests to the dispatch namespace API return a400error with code100120ifnamedoes not meet these requirements:Invalid dispatch namespace name. Ensure it does not already exist and uses only lowercase letters, numbers, underscores and dashes (do not start with a dash). -
wrangler dispatch-namespace createreturns the same100120error. -
Terraform applies that create a
cloudflare_workers_for_platforms_dispatch_namespaceresource with an invalidnamefail.
Existing namespaces are not affected.
These are the same naming rules that apply to Worker names.
For more information, refer to How Workers for Platforms works.