TurboJack
TurboJack
CDCloudflare Developers
Created by TurboJack on 4/12/2025 in #workers-help
Unable to Authenticate request with 10001 error code
Yes the code runs locally using wrangler dev and within the worker I call the cloudflare api to delete via worker for platforms.
21 replies
CDCloudflare Developers
Created by TurboJack on 4/12/2025 in #workers-help
Unable to Authenticate request with 10001 error code
I found the cause. Yesterday updated my wrangler.json from
"compatibility_date": "2025-03-31",
"compatibility_date": "2025-03-31",
to
"compatibility_date": "2025-04-11",
"compatibility_date": "2025-04-11",
I double checked. Ran both version. Is this the expected behaviour?
21 replies
CDCloudflare Developers
Created by TurboJack on 4/12/2025 in #workers-help
Unable to Authenticate request with 10001 error code
I only updated
"wrangler": "^4.10.0"
"wrangler": "^4.10.0"
vars are in my .dev.var file. I really don't know. The cloudflare sdk has not changed since a month. let me try to reverse wrangler (should be unrelated)
21 replies
CDCloudflare Developers
Created by TurboJack on 4/12/2025 in #workers-help
Unable to Authenticate request with 10001 error code
I got it working but this is definitely a breaking change. My old code which stopped working looks like this.
const client = new Cloudflare({ apiKey: this.env.CLOUDFLARE_API_KEY, apiEmail: this.env.CLOUDFLARE_EMAIL })
await client.workersForPlatforms.dispatch.namespaces.scripts.delete(
args.dispatchedNamespace,
args.scriptName,
{ account_id: args.cloudflareAccountId, force: true }
)
const client = new Cloudflare({ apiKey: this.env.CLOUDFLARE_API_KEY, apiEmail: this.env.CLOUDFLARE_EMAIL })
await client.workersForPlatforms.dispatch.namespaces.scripts.delete(
args.dispatchedNamespace,
args.scriptName,
{ account_id: args.cloudflareAccountId, force: true }
)
no matter what combination of new Cloudflare, with apiKey, or apiToken, with or without email returns the same 10001 error. But using curl I got it working with this
curl https://api.cloudflare.com/client/v4/accounts/<MY_ACCOUNT_ID>/workers/dispatch/namespaces/dev/scripts/<SCRIPT> \
-X DELETE \
-H "Authorization: Bearer <MY_TOKEN>"

{
"result": {
"id": "..."
},
"success": true,
"errors": [],
"messages": []
}
curl https://api.cloudflare.com/client/v4/accounts/<MY_ACCOUNT_ID>/workers/dispatch/namespaces/dev/scripts/<SCRIPT> \
-X DELETE \
-H "Authorization: Bearer <MY_TOKEN>"

{
"result": {
"id": "..."
},
"success": true,
"errors": [],
"messages": []
}
21 replies
CDCloudflare Developers
Created by TurboJack on 4/12/2025 in #workers-help
Unable to Authenticate request with 10001 error code
I'll try
21 replies
CDCloudflare Developers
Created by TurboJack on 4/12/2025 in #workers-help
Unable to Authenticate request with 10001 error code
No description
21 replies
CDCloudflare Developers
Created by TurboJack on 4/12/2025 in #workers-help
Unable to Authenticate request with 10001 error code
or
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/workers/scripts \
-H "X-Auth-Email: $CLOUDFLARE_EMAIL" \
-H "X-Auth-Key: $CLOUDFLARE_API_KEY"
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/workers/scripts \
-H "X-Auth-Email: $CLOUDFLARE_EMAIL" \
-H "X-Auth-Key: $CLOUDFLARE_API_KEY"
21 replies
CDCloudflare Developers
Created by TurboJack on 4/12/2025 in #workers-help
Unable to Authenticate request with 10001 error code
I'm currently try other apis endpoints too. All return the same error. example
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/workers/dispatch/namespaces/$DISPATCH_NAMESPACE/scripts/$SCRIPT_NAME \
-X DELETE \
-H "X-Auth-Email: $CLOUDFLARE_EMAIL" \
-H "X-Auth-Key: $CLOUDFLARE_API_KEY"
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/workers/dispatch/namespaces/$DISPATCH_NAMESPACE/scripts/$SCRIPT_NAME \
-X DELETE \
-H "X-Auth-Email: $CLOUDFLARE_EMAIL" \
-H "X-Auth-Key: $CLOUDFLARE_API_KEY"
21 replies
CDCloudflare Developers
Created by TurboJack on 4/12/2025 in #workers-help
Unable to Authenticate request with 10001 error code
{"code":10001,"message":"Unable to authenticate request"}
{"code":10001,"message":"Unable to authenticate request"}
21 replies
CDCloudflare Developers
Created by TurboJack on 3/22/2025 in #workers-help
How to delete worker assets?
I solved the problem by deleting the whole dispatch namespace.
4 replies
CDCloudflare Developers
Created by TurboJack on 3/22/2025 in #workers-help
How to delete worker assets?
They are new deployments but because the hash matches a different deployed assets they get reused. I want to delete them because of a wrong upload.
4 replies
CDCloudflare Developers
Created by Gyurmatag on 4/12/2024 in #general-help
Help wanted on AWS, Azure vs Cloudflare
Any luck?
2 replies
DDeno
Created by Mqx on 9/30/2023 in #help
Deno + Lit
I'm looking for something simlar. I want to use https://shoelace.style/ with fresh SSR. Shoelace is built on top of lit.
22 replies