Asset upload and changeset request fail

Hi there, I am getting the following errors from Wrangler (including by using Workers Build): When I have static assets in the deployment:
[ERROR] A request to the Cloudflare API (/accounts/<account ID>/workers/scripts/<worker name>/assets-upload-session) failed.

Could not route to
/client/v4/accounts/<account ID>/workers/scripts/<worker name>/assets-upload-session,
perhaps your object identifier is invalid? [code: 7003]
[ERROR] A request to the Cloudflare API (/accounts/<account ID>/workers/scripts/<worker name>/assets-upload-session) failed.

Could not route to
/client/v4/accounts/<account ID>/workers/scripts/<worker name>/assets-upload-session,
perhaps your object identifier is invalid? [code: 7003]
Without static assets in the deployment:
[ERROR] A request to the Cloudflare API (/accounts/<account ID>/workers/scripts/<worker name>/domains/changeset?replace_state=true) failed.

Could not route to
/client/v4/accounts/<account ID>/workers/scripts/<worker name>/domains/changeset,
perhaps your object identifier is invalid? [code: 7003]
[ERROR] A request to the Cloudflare API (/accounts/<account ID>/workers/scripts/<worker name>/domains/changeset?replace_state=true) failed.

Could not route to
/client/v4/accounts/<account ID>/workers/scripts/<worker name>/domains/changeset,
perhaps your object identifier is invalid? [code: 7003]
The worker has definitely been created on the CF portal. I'm curious what causes this error especially since other API calls seem to work just fine (the portal is able to show me the bindings associated with the Worker, for instance). Thanks for your help!
6 Replies
Walshy
Walshy2mo ago
What's your Worker name? Definitely shouldn't be getting here, this erorr generally means it's an invalid path'
Thomas
ThomasOP2mo ago
It's called accounts
Walshy
Walshy2mo ago
ah yeah that'll do it :blobsweats: you confuse the api routing service when you have like accounts zones in the path because it uses those as key terms in the path
Thomas
ThomasOP2mo ago
oooh
Walshy
Walshy2mo ago
if you change that to like accounts-production or something, should be fine
Thomas
ThomasOP2mo ago
That makes sense, I'll swap the name for another one. Thanks for the help! Yup, that did the trick!

Did you find this page helpful?