watson-developer-cloud / node-red-node-watson

A collection of nodes for the IBM Watson services
Apache License 2.0
82 stars 86 forks source link

Visual Recognition node crashes Node-RED when sent msg.params.detect_mode=text #368

Closed johnwalicki closed 6 years ago

johnwalicki commented 6 years ago

After node-red-node-watson 0.6.0 removed the Text Recognition option from the Visual Recognition Node any flow that tries to call it with params.detect_mode = text will crash the Node-RED runtime.

I send the Visual Recognition node this msg.params params.detect_mode = text

2 Feb 11:26:00 - [error] [visual-recognition-v3:13454488.01f9c3] Invalid parameter setting for detect_mode, using configuration value Segmentation fault

chughts commented 6 years ago

I am unable to reproduce. I get:

"Invalid parameter setting for detect_mode, using configuration value"

If I force the configuration value to 'recognizeText' or something else Invalid I get:

"Invalid parameter setting for detect_mode, using configuration value"
"Mode recognizeText not understood"

but no segmentation fault in either case. I have the latest version of the nodes - 0.6.2 node-red - 0.17.4

chughts commented 6 years ago

Closing as URP