-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to remove quotes in final produced messages #5
Comments
I've been struggling with this for a couple of hours, didn't know it was a known issue. Since Kafka by design doesn't require messages to be in a certain format, I think that it should be possible to feed any plain string to the Kafka producer node. |
This is the code in question. So, if the payload is an object, it's JSON.stringified twice. If it's a string, it's JSON.stringified once, which surrounds it in quotes (e.g.
|
I see now that a PR for exactly this was created on Nov 18. I hope it'll be incorporated soon. |
First of all thanks for this awesome package. I find it really useful.
I was deploying a pipeline including nodered -> kafka -> telegraf -> influxdb The pipeline started generating some data using nodered red and sending it to kafka. In this scenario, telegraf consumes data from kafka and sends it to Influxdb. However, it did not work because messages sent to kafka are surrounded by quotes. I guess this is due to a stringify process inside the JS code. This results into a parsing error because parsers do not expect any quotes.
Maybe this could be an additional option, or simply the quotes could be removed.
The text was updated successfully, but these errors were encountered: