CF-Changes Workers for Platforms - Dispatch namespace names now follow Worker naming rules

Cloudflare Reporting - Product Changelog

ENF News Bot

Automated News Bot
Joined
Apr 15, 2022
Messages
4,544
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:


  • POST requests to the dispatch namespace API return a 400 error with code 100120 if name does 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 create returns the same 100120 error.


  • Terraform applies that create a cloudflare_workers_for_platforms_dispatch_namespace resource with an invalid name fail.

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.

Continue reading...
 
Back
Top