Daniel-t / node-red-contrib-aws

A collection of Node-RED nodes for AWS.
Apache License 2.0
57 stars 59 forks source link

Critical Concurrency issue - Rekognition #66

Closed NorthernMan54 closed 3 years ago

NorthernMan54 commented 3 years ago

I have found that if multiple requests are processed at the same time, they all share the same msg object on response. So if your msg object contains context needed for further processing of the flow it will be the same object. In my use case I found that when multiple unique image's are sent simultaneously to Rekognition they were returned with the same msg object, and the proper payload object. So if you attempted to draw boxes on the returned msg.Image they will be incorrect.

I do have a fix, so expect a pull request within the next few days.