简体   繁体   English

如何分析Node-RED HTTP节点的完整响应

[英]How to analyze complete response of Node-RED HTTP Node

I'm trying to migrate a Node-RED flow from a Mac to the IBM cloud. 我正在尝试将Node-RED流从Mac迁移到IBM云。 Scenario: 场景:

  1. HTTP GET Request directly (alternative a : Node-RED installed on Mac) to a local intranet system or (alternative b , Node-RED used on IBM Cloud) via Secure Gateway to the same system. 通过安全网关直接向本地Intranet系统发送HTTP GET请求 (替代a :在Mac上安装的Node-RED),或通过Secure Gateway向同一系统请求 (替代b ,在IBM Cloud上使用Node-RED)。 In both cases I can see a cut-off XML response in the debug window, so there is data returned (UTF-8). 在这两种情况下,我都可以在调试窗口中看到截断的XML响应,因此返回了数据(UTF-8)。
  2. Transform to Object : the conversion of that XML data to an object works okay for ( a ) but results in the error "Unclosed root tag" for ( b ). 转换为对象 :( a )可以将XML数据转换为对象,但是( b )会导致错误“未封闭的根标记”。

As the responses are cut-off I can not compare them. 由于响应是截断的,因此我无法进行比较。

The output to the debug tab is deliberately trimmed to stop it overwhelming the websocket connection to the browser with too much data. 故意调整了调试选项卡的输出,以防止其过多的数据使websocket与浏览器的连接不堪重负。

If you change the debug node to output to the "debug tab and console" the full message will be output to Node-RED logs and you should be able to compare them. 如果将调试节点更改为输出到“调试选项卡和控制台”,则完整消息将输出到Node-RED日志,您应该能够进行比较。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM