title: Cannot read property 'byteLength' of undefined for aws-sdk js v3 for dynamodb client
body: <p>I'm trying to connect a nestjs backend (node) with a dynamodb table using @aws-sdk/client-dynamodb but I have a server error:</p>
  <pre><code>[Nest] 24019  - 24/08/2021, 21:19:38   ERROR [ExceptionsHandler] Cannot read property 'byteLength' of undefined
  TypeError: Cannot read property 'byteLength' of undefined
  </code></pre>
  <p>from
  <code>node_modules/@aws-sdk/util-buffer-from/src/index.ts:4:8</code></p>
  <p>I instantiate my client like so:</p>
  <pre><code>import { DynamoDB } from &quot;@aws-sdk/client-dynamodb&quot;;
  
  
  // Full DynamoDB Client
  const client = new DynamoDB({
      region: 'eu-west-2',
      credentials: {
          accessKeyId: process.env.AWS_ACCESS_KEY_ID,
          secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
      }
  });
  </code></pre>
  <p>I use dotenv to build process env variable</p>
  <p>I searched the web, but except for some post saying that I need to lowercase credentials object key which is already done on my code I found nothing</p>