You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/Users/trivikr/workspace/v2-vs-v3/node_modules/@aws-sdk/util-dynamodb/dist/cjs/convertToNative.js:50 return BigInt(numString); ^SyntaxError: Cannot convert -9007199254740998.25 to a BigInt at BigInt (<anonymous>) at convertNumber (/Users/trivikr/workspace/v2-vs-v3/node_modules/@aws-sdk/util-dynamodb/dist/cjs/convertToNative.js:50:20) at Object.convertToNative (/Users/trivikr/workspace/v2-vs-v3/node_modules/@aws-sdk/util-dynamodb/dist/cjs/convertToNative.js:19:28) at /Users/trivikr/workspace/v2-vs-v3/node_modules/@aws-sdk/util-dynamodb/dist/cjs/convertToNative.js:67:20 at Array.reduce (<anonymous>) at convertMap (/Users/trivikr/workspace/v2-vs-v3/node_modules/@aws-sdk/util-dynamodb/dist/cjs/convertToNative.js:65:58) at Object.convertToNative (/Users/trivikr/workspace/v2-vs-v3/node_modules/@aws-sdk/util-dynamodb/dist/cjs/convertToNative.js:27:28) at unmarshall (/Users/trivikr/workspace/v2-vs-v3/node_modules/@aws-sdk/util-dynamodb/dist/cjs/unmarshall.js:11:57) at Object.<anonymous> (/Users/trivikr/workspace/v2-vs-v3/documentClient.js:3:16) at Module._compile (internal/modules/cjs/loader.js:1063:30)
Expected behavior
Throw an error, as the string value can't be converted into BigInt. But mention in the error that options.wrapNumbers=true can be set to get string value of the number.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.
Describe the bug
util-dynamodb throws the following error when trying to unmarshall floating point numbers outside SAFE_INTEGER bounds:
Your environment
SDK version number
@aws-sdk/[email protected]
Is the issue in the browser/Node.js/ReactNative?
All
Details of the browser/Node.js/ReactNative version
tested in Node.js v14.15.4
Steps to reproduce
Code
Observed behavior
Expected behavior
Throw an error, as the string value can't be converted into BigInt. But mention in the error that
options.wrapNumbers=true
can be set to get string value of the number.Additional context
Noticed while debugging #1983
The text was updated successfully, but these errors were encountered: