When I attempt to send a JSON payload to the module being debugged, I get the following error:
{
"error": "TypeError: \"string\" must be a string, Buffer, or ArrayBuffer"
}
Repro steps:
iotedgehubdev start -i 'input1'
curl --header "Content-Type: application/json" --request POST --data '{"inputName": "input1","data":{"key":"val"}}' http://localhost:53000/api/v1/messages
observe the error message
To work-around this, I had to covert the "data" JSON value to string by escaping the double qoutes:
curl --header "Content-Type: application/json" --request POST --data '{"inputName": "input1","data":"{\"key\":\"val\"}"}' http://localhost:53000/api/v1/messages
Can the tool be modified to stringify the "data" value?
iotedgehubdev, version 0.14.1 OS: Ubuntu 16.04
When I attempt to send a JSON payload to the module being debugged, I get the following error: { "error": "TypeError: \"string\" must be a string, Buffer, or ArrayBuffer" }
Repro steps:
To work-around this, I had to covert the "data" JSON value to string by escaping the double qoutes: curl --header "Content-Type: application/json" --request POST --data '{"inputName": "input1","data":"{\"key\":\"val\"}"}' http://localhost:53000/api/v1/messages
Can the tool be modified to stringify the "data" value?