Skip to main content
1-Visitor
July 21, 2017
Question

Refilling connections on endpoint 0 failed Philips Hue

  • July 21, 2017
  • 3 replies
  • 1803 views

Hello,

I'am using Thingworx 8 and Java 8.

Trying to install PhilipsHue given on PTC Marketplace on Thingworx platform. However, i get connection on endpoint 0 failed. Here is a screenshot.

PhilipsHueError.PNG

My agent.properties is the following

twx_appkey=c7bf635a-2dd2-4bef-9b62-fb66868aa8d2 (Defined in THWS studio)

twx_uri=ws://localhost:80/Thingworx/WS

ScanRate=2000

twx_id=PhilipsHUE

hue_base_host=192.168.1.1

hue_user=VbcME6P86nMKKcYyVHRQTC5XHuzuxPaeNIbt27Tl (given via phillips Hue API)

I have verified Websocket on my browser using websocket.org Echo Test - Powered by Kaazing and it is working.

I am not behind a proxy. I have tried to access communication.log but i don't have anything in it 😕

Can anyone help me please.

3 replies

5-Regular Member
July 21, 2017

Amal, can you try using your IP or even 127.0.0.1 instead of localhost? There shouldn't be an issue with loopback connections, but that is worth checking.

atahri1-VisitorAuthor
1-Visitor
July 25, 2017

Hello, thank you for your help,

when i try with localhost and loop adresse i get waiting for websocket handshake to complete.


I'am guessing that this is a SSL problem in my Tomcat.

I'am trying to upgrade from composer 6 to 8 so having some problem.

I'll keep you posted when i get everything in order.

atahri1-VisitorAuthor
1-Visitor
August 29, 2017

The resolution of this problem is within the agent.properties of the PhilipsHue plugin. In fact, in the PhilipsHue tutorial, there is a mistake where instead of using wss it is noted ws in twx_uri and the port number to add is 443, at least in my case.

So, this works for me.

twx_uri=wss://sandbox.thingworx.com:443/Thingworx/WS