Skip to content

@aws-sdk/client-scheduler DeleteScheduleCommand ValidationException: ClientToken cannot be empty. #7493

@junbin23

Description

@junbin23

Checkboxes for prior research

Describe the bug

ValidationException: ClientToken cannot be empty.

ClientToken is optional according to the Docs.

Regression Issue

  • Select this option if this issue appears to be a regression.

SDK version number

@aws-sdk/client-scheduler@v3.929.0

Which JavaScript Runtime is this issue in?

Node.js

Details of the browser/Node.js/ReactNative version

v20.19.2

Reproduction Steps

import { DeleteScheduleCommand } from '@aws-sdk/client-scheduler';

const scheduler = new SchedulerClient({});
const deleteScheduleCommand = new DeleteScheduleCommand({
  Name: 'MyScheduleName'
});

const result = await scheduler.send(deleteScheduleCommand);

Observed Behavior

ValidationException: ClientToken cannot be empty.

Expected Behavior

ClientToken : If you do not specify a client token, EventBridge Scheduler uses a randomly generated token for the request to ensure idempotency.

Ref: https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/scheduler/command/DeleteScheduleCommand/

Possible Solution

No response

Additional Information/Context

This is the same ticket that opened years ago.
#4212

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.p1This is a high priority issuepotential-regressionMarking this issue as a potential regression to be checked by team memberresponse-requestedWaiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions