cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

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

Akj7579
12-Amethyst

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

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
slangley
23-Emerald II
(To:Akj7579)

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

View solution in original post

3 REPLIES 3
slangley
23-Emerald II
(To:Akj7579)

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

Akj7579
12-Amethyst
(To:slangley)

Thanks for your reply @slangley 

 

 

I'm using C SDK 2.2.1 version

slangley
23-Emerald II
(To:Akj7579)

Hi @Akj7579.

 

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

 

Regards.

 

--Sharon

Top Tags