节点红色“无响应对象”

时间:2015-12-29 04:14:57

标签: node.js node-red

我正在尝试创建一个获取表单数据的http get节点,然后使用rest API创建一个http帖子到另一个网站。我能够获得http调用以返回正确的有效负载,但是http响应节点在调试选项卡中给出“无响应对象”错误,并且客户端永远不会返回。我是否特别需要做一些事情来传递响应对象,以便调用将正确的响应对象发送到http响应节点?

这是流程: [{“id”:“7011e7a9.8fee18”,“type”:“http request”,“name”:“”,“method”:“use”,“ret”:“obj”,“url”:“”中, “x”:499, “Y”:84, “Z”: “51693a88.ae96c4”, “电线”:[[ “efea497c.1015b8”]]},{ “ID”: “589f2a18.a760d4”,”键入“:”function“,”name“:”“,”func“:”var myprocess = context.global.process; \ nmyprocess.env.NODE_TLS_REJECT_UNAUTHORIZED = \“0 \”; \ nvar dev_url = \“{{3 } \“; \ n \ nvar msg = {\ n \”方法\“:\”GET \“,\ n \”url \“:dev_url,\ n \”headers \“:{\ n \”授权\“:\”基本abWZnQHFhZC5jb206 = \“,\ n \”Origin \“:\”mybox.com \“\ n} \ n}; \ n \ nreturn msg;”,“输出”:1,“noerr” :0, “×”:323, “Y”:154, “Z”: “51693a88.ae96c4”, “电线”:[[ “7011e7a9.8fee18”]]},{ “ID”: “9f65b624.609a48” , “类型”: “调试”, “名”: “”, “主动”:真正的 “控制台”: “假”, “完整”: “有效载荷”, “X”:810, “Y”:211, “z”:“51693a88.ae96c4”,“wires”:[]},{“id”:“38e4c04d.c71b4”,“type”:“http in”,“name”:“”,“url”:“ /workOrders","method":"get","swaggerDoc":"","x":152,"y":190,"z":"51693a88.ae96c4","wires":[["589f2a18。 a760d4 “]]},{” ID “:” e5ee54b2.1a11a8" , “类型”:“HTTP响应”, “名称”: “”, “×”:770, “Y”:96, “Z”: “51693a88.ae96c4”, “线”:[]},{ “ID”: “efea497c.1015b8” ,“type”:“function”,“name”:“”,“func”:“var newMsg = {payload:msg.payload}; \ nreturn newMsg;”,“output”:1,“noerr”:0, “×”:582, “Y”:214, “Z”: “51693a88.ae96c4”, “电线”:[[ “e5ee54b2.1a11a8”, “9f65b624.609a48”]]}]

1 个答案:

答案 0 :(得分:5)

关键是将它从节点传递给另一个节点。您可以使用req和msg中的res传递给输出。

svn: E210002: Unable to connect to a repository at URL 'svn+ssh://xxxx@xxxx/xxxxxx/xxxxxx/trunk'
svn: E210002: To better debug SSH connection problems, remove the -q option from 'ssh' in the [tunnels] section of your Subversion configuration file.
svn: E210002: Network connection closed unexpectedly