Doing a GET to /workers/traces works for me, it returns an array of all the traces set up
Doing a GET to /workers/traces works for me, it returns an array of all the traces set up
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 JSON
cf object still be stripped when passing the Request through?https://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.cfRequest{
type: "dispatch_namespace";
name: string;
namespace: string;
outbound?: {
worker: {
service: string;
environment?: string;
};
params?: { name: string }[];
};
};