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

Refilling connections on endpoint 0 failed Philips Hue

Level 4

Refilling connections on endpoint 0 failed Philips Hue

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 3

Re: Refilling connections on endpoint 0 failed Philips Hue

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.

Re: Refilling connections on endpoint 0 failed Philips Hue

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.

Re: Refilling connections on endpoint 0 failed Philips Hue

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