node-red-contrib-aws
node-red-contrib-aws copied to clipboard
DynamoDB errors lose original message
Expected
The error output of a DynamoDB node to add msg.err to existing msg object.
Actual
The error output of a DynamoDB node is a new msg with only msg.err and a new msg._msgid property.
Impact
This causes issues using DynamoDB in an HTTP endpoint flow because it loses the msg.res object. Additionally, mitigations by stashing msg.res in flow context aren't possible because even the msg._msgid is lost.
I'm facing the same difficulties because of the missing msg object.
This affects all nodes, not just DynamoDB. It is a problem for me, too, as I run these nodes from flows that are exposed as web services. Without the msg.res and msg.req data in the error, it is impossible to send a response to the original http request, so it must time out instead.