技术文章 - CS334669

Kepware 无法连接到 ThingWorx Platform,并出现错误:KEPServerEX / ThingWorx Industrial Connectivity / Kepware 中的“twWs_Connect:初始化 Web 套接字时出错。响应代码:404”

已修改: 24-Jul-2023   


注意:本文已使用机器翻译软件翻译,以方便非英语客户阅读。但翻译内容可能包含语法错误或不准确之处。请注意, PTC对本文所含信息的翻译准确性及使用后果不承担任何责任。请在 此处 查看本文的英文原始版本以便参考。有关机器翻译的更多详情,请单击 此处
感谢您告诉我们。我们将尽快审阅此译文。

适用于

  • ThingWorx Platform 8.5 to 9.1 SP7

说明

  • Kepware 无法连接到 ThingWorx,并出现错误: twWs_Connect:初始化 Web 套接字时出错。响应代码:404
  • Kewpare 日志包含以下内容:
    • Debug           ThingWorx Diagnostics          [ERROR] 2020-11-30 01:50:07,419 twWs_Connect: Error initializing web socket.  Response code: 404
      Debug           ThingWorx Diagnostics          [ERROR] 2020-11-30 01:50:07,419 twApi_Connect: Max number of connect retries: 1, has been reached
      Debug           ThingWorx Diagnostics          [ERROR] 2020-11-30 01:50:07,419 twMessage_Send: Error sending Message with RequestId 315329
      Debug           ThingWorx Diagnostics          [WARN] 2020-11-30 01:50:07,419 sendCtlFrame: Not connected
      Debug           ThingWorx Diagnostics          [WARN] 2020-11-30 01:50:07,419 msgHandlerOnClose: WEBSOCKET CLOSED
      Debug           ThingWorx Diagnostics          [ERROR] 2020-11-30 03:13:19,809 twWs_Create: Error creating BSD socket to be used for the websocket
      Debug           ThingWorx Diagnostics          [ERROR] 2020-11-30 03:13:19,809 twApi_Initialize: Error creating websocket structure, retrying
      Debug           ThingWorx Diagnostics          [ERROR] 2020-11-30 03:13:19,809 twWs_Create: Error creating BSD socket to be used for the websocket
      Debug           ThingWorx Diagnostics          [ERROR] 2020-11-30 03:13:19,809 twApi_Initialize: Could not connect after 1 attempts
      Error           ThingWorx Native Interface     Connection to ThingWorx failed for an unknown reason. | Platform https://<ThingWorx Host>/:<Port>/Thingworx/WS, 
这是文章 334669 的 PDF 版本,可能已过期。最新版本 CS334669