Closed
Description
Describe the bug
s3 ListObjectsV2Command throws an error when a file size(in bytes) exceed 32-bit integer.
Error occurred when listing a files on s3with size of 2.3GB. issue may relates to this commit c1a7dd5
Your environment
SDK version number
@aws-sdk/client-s3/@3.29.0
Is the issue in the browser/Node.js/ReactNative?
Node.js
Details of the browser/Node.js/ReactNative version
v14.16.0
Steps to reproduce
Please share code or minimal repo, and steps to reproduce the behavior.
Observed behavior
A clear and concise description of what happens.
Expected behavior
A clear and concise description of what you were expecting to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
TypeError: Expected 32-bit integer, got 2246119204\n at expectSizedInt (/var/app/current/node_modules/@aws-sdk/smithy-client/dist/cjs/parse-utils.js:156:15)\n at expectInt32 (/var/app/current/node_modules/@aws-sdk/smithy-client/dist/cjs/parse-utils.js:133:32)\n at strictParseInt32 (/var/app/current/node_modules/@aws-sdk/smithy-client/dist/cjs/parse-utils.js:365:40)\n at deserializeAws_restXml_Object (/var/app/current/node_modules/@aws-sdk/client-s3/dist/cjs/protocols/Aws_restXml.js:11980:62)\n at /var/app/current/node_modules/@aws-sdk/client-s3/dist/cjs/protocols/Aws_restXml.js:11997:16\n at Array.map (<anonymous>)\n at deserializeAws_restXmlObjectList (/var/app/current/node_modules/@aws-sdk/client-s3/dist/cjs/protocols/Aws_restXml.js:11993:10)\n at deserializeAws_restXmlListObjectsV2Command (/var/app/current/node_modules/@aws-sdk/client-s3/dist/cjs/protocols/Aws_restXml.js:7272:29)\n at runMicrotasks (<anonymous>)\n at processTicksAndRejections (internal/process/task_queues.js:93:5)\n at async /var/app/current/node_modules/@aws-sdk/middleware-serde/dist/cjs/deserializerMiddleware.js:6:20\n at async /var/app/current/node_modules/@aws-sdk/middleware-signing/dist/cjs/middleware.js:11:20\n at async StandardRetryStrategy.retry (/var/app/current/node_modules/@aws-sdk/middleware-retry/dist/cjs/StandardRetryStrategy.js:51:46)\n at async /var/app/current/node_modules/@aws-sdk/middleware-logger/dist/cjs/loggerMiddleware.js:6:22\n at async Object.listObjects