Skip to main content
13-Aquamarine
June 20, 2023
Solved

Error creating BSD socket to be used for the websocket and error creating websocket structure

  • June 20, 2023
  • 1 reply
  • 1562 views

I am trying to send data from Teltonika RUT955 to ThingWorx server and getting the below error - any idea how to fix this.

 

[WARN ] 2023-06-20 12:15:54,297: SDK Version: 2.2.1
[WARN ] 2023-06-20 12:15:54,298: TLS Library: OpenSSL
[WARN ] 2023-06-20 12:15:54,299: TLS Library Version: 1.1.1t
[WARN ] 2023-06-20 12:15:54,301: FIPS Capable
[ERROR] 2023-06-20 12:15:54,334: twWs_Create: Error creating BSD socket to be used for the websocket
[ERROR] 2023-06-20 12:15:54,334: twApi_Initialize: Error creating websocket structure, retrying
[ERROR] 2023-06-20 12:15:59,352: twWs_Create: Error creating BSD socket to be used for the websocket
[ERROR] 2023-06-20 12:15:59,353: twApi_Initialize: Error creating websocket structure, retrying
[ERROR] 2023-06-20 12:16:04,362: twWs_Create: Error creating BSD socket to be used for the websocket
[ERROR] 2023-06-20 12:16:04,363: twApi_Initialize: Error creating websocket structure, retrying
[ERROR] 2023-06-20 12:16:09,374: twWs_Create: Error creating BSD socket to be used for the websocket
[ERROR] 2023-06-20 12:16:09,375: twApi_Initialize: Could not connect after 3 attempts
Failed to initialize ThingWorx connection
Failed to send data to ThingWorx

 

Best answer by slangley

Hi @Akj7579.

 

While reviewing your post we noticed a couple of things:

 

  • You seem to be running an old version of the C SDK.  You might want to upgrade and see if you run into the same issues.  Our latest version has some security fixes and connection improvements.
  • One of the Warning messages indicates "FIPS Capable."  Do you have FIPS turned on?  We don't yet support FIPS.
  • The TLS library contained in the C SDK upgrades to 1.1.1q which is an earlier release than the one you're using.

Which version of ThingWorx are you running?

 

Regards.

 

--Sharon

1 reply

slangleyCommunity ManagerAnswer
Community Manager
June 21, 2023

Hi @Akj7579.

 

While reviewing your post we noticed a couple of things:

 

  • You seem to be running an old version of the C SDK.  You might want to upgrade and see if you run into the same issues.  Our latest version has some security fixes and connection improvements.
  • One of the Warning messages indicates "FIPS Capable."  Do you have FIPS turned on?  We don't yet support FIPS.
  • The TLS library contained in the C SDK upgrades to 1.1.1q which is an earlier release than the one you're using.

Which version of ThingWorx are you running?

 

Regards.

 

--Sharon

Akj757913-AquamarineAuthor
13-Aquamarine
June 22, 2023

Thanks for your reply @slangley 

 

 

I'm using C SDK 2.2.1 version

Community Manager
July 10, 2023

Hi @Akj7579.

 

Did my previous response provide any help in resolving your issue?  What is the current status?

 

Regards.

 

--Sharon