-
Notifications
You must be signed in to change notification settings - Fork 621
Closed
Labels
bugThis issue is a bug.This issue is a bug.p2This is a standard priority issueThis is a standard priority issue
Description
Checkboxes for prior research
- I've gone through Developer Guide and API reference
- I've checked AWS Forums and StackOverflow.
- I've searched for previous similar issues and didn't find any solution.
Describe the bug
@aws-sdk/client-iot-data-plane
after upgrade from ^3.437.0 → ^3.533.0
I start to get this error
"stack":
TypeError: identity.expiration.getTime is not a function
at /opt/atlassian/pipelines/agent/build/node_modules/@smithy/core/dist-cjs/index.js:270:154
at /opt/atlassian/pipelines/agent/build/node_modules/@smithy/core/dist-cjs/index.js:315:9
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at /opt/atlassian/pipelines/agent/build/node_modules/@smithy/core/dist-cjs/index.js:82:17
at /opt/atlassian/pipelines/agent/build/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22
"message": "identity.expiration.getTime is not a function"
This is how I use it.
const command = new GetThingShadowCommand({
thingName,
});
const client = new IoTDataPlaneClient({
endpoint: `https://${process.env.IOT_ENDPOINT}`,
region: process.env.REGION,
credentials,
});
client.send(command),
SDK version number
@aws-sdk/client-iot-data-plane 3.533.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v18.16.0
Reproduction Steps
const command = new GetThingShadowCommand({
thingName,
});
const client = new IoTDataPlaneClient({
endpoint: `https://${process.env.IOT_ENDPOINT}`,
region: process.env.REGION,
credentials,
});
client.send(command),
Observed Behavior
error
TypeError: identity.expiration.getTime is not a function
at /opt/atlassian/pipelines/agent/build/node_modules/@smithy/core/dist-cjs/index.js:270:154
at /opt/atlassian/pipelines/agent/build/node_modules/@smithy/core/dist-cjs/index.js:315:9
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at /opt/atlassian/pipelines/agent/build/node_modules/@smithy/core/dist-cjs/index.js:82:17
at /opt/atlassian/pipelines/agent/build/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22
"message": "identity.expiration.getTime is not a function"
Expected Behavior
No error
Possible Solution
No response
Additional Information/Context
No response
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.p2This is a standard priority issueThis is a standard priority issue