Article - CS334669
Kepware can't connect to ThingWorx Platform with error: "twWs_Connect: Error initializing web socket. Response code: 404" in KEPServerEX / ThingWorx Industrial Connectivity / Kepware
Modified: 24-Jul-2023
Applies To
- ThingWorx Platform 8.5 to 9.1 SP7
Description
- Kepware can't connect to ThingWorx with error: twWs_Connect: Error initializing web socket. Response code: 404
- Kewpare Log contains the following:
-
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,
-
This is a printer-friendly version of Article 334669 and may be out of date. For the latest version click CS334669