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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Refilling connections on endpoint 0 failed Philips Hue

atahri
4-Participant

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
Aanjan
9-Granite
(To:atahri)

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.

atahri
4-Participant
(To:atahri)

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.

atahri
4-Participant
(To:atahri)

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

Top Tags