Few days ago I found this line in my syslog:
Sun, 04 Sep 2022 12:37:45 GMT express deprecated res.status("200"): use res.status(200) instead at ../../usr/lib/node_modules/node-red/node_modules/@node-red/nodes/core/network/21-httpin.js:328:34
What is it referring to?
1 Like
Hi @fmarzocca - what version of Node-RED are you using?
Does your flow set msg.statusCode
before passing it to the HTTP Response
node? If so, how are you doing that?
The error is because msg.statusCode
has been provided as a String ("200"
) rather than a number (200
).
It is a deprecation warning - meaning it will still work, but the flow should be updated to ensure it is passing in a number not a string.
I will check, but it is hard to find the right node... (v. 3.0.2)
I have checked. I am not setting msg.statusCode
anywhere, except here:
But the log line is not repeating anymore. Maybe it was a test I made days ago. I will check again in the coming days,. Thank you for your answer.
system
Closed
5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.