Skip to content

scriptAndVersionSettings.edit Missing settings part in multipart upload #2648

@KayleeWilliams

Description

@KayleeWilliams

Confirm this is a Typescript library issue and not an underlying Cloudflare API issue

  • This is an issue with the Typescript library

Describe the bug

I get the following error when I try to use workers.scripts.scriptAndVersionSettings.edit

" Error: 400 {"result":null,"success":false,"errors":[{"code":10201,"message":"Missing settings part in multipart upload. Ensure you include a settings part in the upload."}],"messages":[]}"

I do not get this message when I use the HTTP API. I get an ok esponse as expected

To Reproduce

  1. Do following code snippet

Code snippets

await cloudflareClient.workers.scripts.scriptAndVersionSettings.edit(scriptName, {
		account_id: env.CLOUDFLARE_ACCOUNT_ID,
		settings: {
			bindings: [
				{
					name: 'XXX',
					text: 'XXX',
					type: 'secret_text',
				},
			],
		},
	});

OS

macOs

Runtime version

Typescript 5.8.3

Library version

4.3.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions