node-red-contrib-aws icon indicating copy to clipboard operation
node-red-contrib-aws copied to clipboard

DynamoDB errors lose original message

Open bewood opened this issue 6 years ago • 2 comments

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.

bewood avatar Oct 25 '19 22:10 bewood

I'm facing the same difficulties because of the missing msg object.

thomaszlow avatar Nov 02 '22 13:11 thomaszlow

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.

quarfie avatar Nov 02 '22 13:11 quarfie