I highly doubt they would do that as it completely defeats the point of namespaces
I highly doubt they would do that as it completely defeats the point of namespaces
namespace_id = "stores/[user-id]/1"/workers/traces/4ee25b110c9748fd9344790259c7ce73 I get 200 OK with empty body.https://api.cloudflare.com/client/v4/accounts/[account_id]/workers/tracesimport { platformThing } from "./platform_module.mjs";[[dispatch_namespaces]] in TOML maps to an array of these objects in JSON:[wrangler:err] SyntaxError: "undefined" is not valid JSONnamespace_id = "stores/[user-id]/1"/workers/traces{
"result": null,
"success": false,
"errors": [
{
"code": 10108,
"message": "workers.api.error.trace_not_found"
}
],
"messages": []
}/workers/traces/4ee25b110c9748fd9344790259c7ce73https://api.cloudflare.com/client/v4/accounts/[account_id]/workers/tracescurl -v -H 'Authorization: Bearer <token>' https://api.cloudflare.com/client/v4/accounts/<acc>>/workers/traces< HTTP/2 404
< date: Wed, 08 May 2024 11:00:15 GMT
< content-type: application/json; charset=UTF-8
< cf-ray: 8808f1e77d9e7d95-TLV
< cf-cache-status: DYNAMIC
< set-cookie: __cflb=0H28vgHxwvgAQtjUGU4yFBDJQfw1pfzuRDHHrrfFEmB; SameSite=Lax; path=/; expires=Wed, 08-May-24 13:30:16 GMT; HttpOnly
< vary: Accept-Encoding
< set-cookie: __cfruid=3fd212d653c86dd50df497588a24bf4403b8069c-1715166015; path=/; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None
< server: cloudflare
<
{
"result": null,
"success": false,
"errors": [
{
"code": 10108,
"message": "workers.api.error.trace_not_found"
}
],
"messages": []
}
* Connection #0 to host api.cloudflare.com left intactimport { platformThing } from "./platform_module.mjs";[[dispatch_namespaces]][wrangler:err] SyntaxError: "undefined" is not valid JSONWARNING
This "Serve static files" feature for Cloudflare Workers has been deprecated. If you want to create an application that serves static assets files, use Cloudflare Pages instead of Cloudflare Workers.{
type: "dispatch_namespace";
name: string;
namespace: string;
outbound?: {
worker: {
service: string;
environment?: string;
};
params?: { name: string }[];
};
};