技术文章 - CS311627
ThingWorx Flow 端点不处理 ThingWorx Platform 中的 WebSocket 通信
已修改: 16-Jan-2023
适用于
- ThingWorx Platform 8.4 to 8.5
说明
- ThingWorx Flow 端点不处理WebSocket通信
- AlwaysOn / WebSocket客户端(边缘 SDK、Integration Runtime ...)无法通过 Flow 端点连接到平台
- 协议升级返回HTTP代码404
- 启用 NGINX 时无法从KEPServerEX /ThingWorx Industrial Connectivity 进行连接
- 为ThingWorx Flow启用了 NGINX,但无法再通过WebSockets进行连接
- 启用NGINX 后, WebSocket流量未按应有的方式处理
- 尝试连接到启用NGINX ThingWorx的环境时,Kepware 在事件日志中显示以下错误:
- 错误 ThingWorx Native Interface 与 ThingWorx 的连接失败。 |平台 = <ThingWorx 主机>:443/Thingworx/WS,错误 = 无法建立 websocket 连接。
调试 ThingWorx 诊断 [DEBUG] twMessage_Send:尚未通过身份验证
调试 ThingWorx 诊断 [错误] twMessage_Send:使用 RequestId 2 发送消息时出错
调试 ThingWorx 诊断 [DEBUG] twMessage_Delete:删除 BIND 消息:2
Debug ThingWorx Diagnostics [DEBUG] 已调用断开连接。代码:1000,原因:
调试 ThingWorx 诊断 [警告] sendCtlFrame:未连接
调试 ThingWorx 诊断 [DEBUG] twTlsClient_Close:正在与服务器断开连接
调试 ThingWorx 诊断 [DEBUG] twTlsClient_Close:删除 SSL 会话
调试 ThingWorx 诊断 [警告] msgHandlerOnClose:WEBSOCKET 已关闭
调试 ThingWorx 诊断 [DEBUG] twTlsClient_Reconnect:重新建立 SSL 上下文
调试 ThingWorx 诊断 [DEBUG] twTlsClient_Connect:连接到服务器
调试 ThingWorx 诊断 [DEBUG] twTlsClient_Connect:已建立 TLS 连接
调试 ThingWorx 诊断 [错误] twWs_Connect:初始化 Web 套接字时出错。响应代码:404
调试 ThingWorx 诊断 [错误] twApi_Connect:最大连接重试次数:1,已达到
调试 ThingWorx 诊断 [DEBUG] twMessage_Send:尚未通过身份验证
调试 ThingWorx 诊断 [错误] twMessage_Send:使用 RequestId 3 发送消息时出错
调试 ThingWorx 诊断 [DEBUG] twMessage_Delete:删除 BIND 消息:3
Debug ThingWorx Diagnostics [DEBUG] 已调用断开连接。代码:1000,原因:
调试 ThingWorx 诊断 [警告] sendCtlFrame:未连接
调试 ThingWorx 诊断 [DEBUG] twTlsClient_Close:正在与服务器断开连接
调试 ThingWorx 诊断 [DEBUG] twTlsClient_Close:删除 SSL 会话
调试 ThingWorx 诊断 [警告] msgHandlerOnClose:WEBSOCKET 已关闭
- 错误 ThingWorx Native Interface 与 ThingWorx 的连接失败。 |平台 = <ThingWorx 主机>:443/Thingworx/WS,错误 = 无法建立 websocket 连接。
这是文章 311627 的 PDF 版本,可能已过期。最新版本 CS311627