Skip to content

@aws-sdk/client-iot-data-plane identity.expiration.getTime #5890

@zhex900

Description

@zhex900

Checkboxes for prior research

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.p2This is a standard priority issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions