Closed lei-zhang-kmart closed 1 month ago
Hi @lei-zhang-kmart - thanks for reaching out.
I'm not able to reproduce this on my end. Can you share your SDK code that would give us more insight? Also it sounds like this happens intermittently. If I have to guess, there's some mismatch in data type you're updating Or network issue?
Intermittent issue like this takes a lot of factors to take into consideration to find the root cause, so please provide more detailed info if you can.
Hey @aBurmeseDev ,
Thank you for looking into this. I finally found what the problem is. Our tester write automation scripted to set the values in the DynamoDB record. Instead of setting to numeric 0, it set to the string "0", but from AWS UI, it looks exactly the same...
So our system then perform numeric operation against the string "0", then it kept failing.
Now, I understand the error message now. But I really hope the error message can be a bit clearer. ex. Numeric operation cannot be operated on string "0" in our case.
I will close this this ticket for now. Hopefully, what I said above make sense, and some improvement on the error message can be done on your end via patch update.
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.
Checkboxes for prior research
Describe the bug
Attempting to use the UPDATE expression on an existing attribute that is not of type SS will result in an error. This error does not occur persistently. It kept working for a while, I deleted the record, the recreate one, it works again with certain amount of testing.
SDK version number
^2.993.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
node20
Reproduction Steps
Observed Behavior
It is similar to https://github.com/aws/aws-sdk-js-v3/issues/4939
Expected Behavior
If it work, it should keep working with the similar input, if it does not work it should fail consistently...
Possible Solution
No response
Additional Information/Context
It is similar to the issue as in here. https://github.com/aws/aws-sdk-js-v3/issues/4939