Search code examples
ibm-cloudnode-red

Nodered IBM-examples are not working on my PC


I tried 2 example programs from the IBM website.

timestamp example

I cannot see anything in the debug tab. Debug node is of course activated and its output is set to debug tab and console.

Chrome developer tools gives some more information:

Warning: SVG's SMIL animations (, , etc.) are deprecated and will be removed. Please use CSS animations or Web animations instead.

It also detects that something has happended (Preview "OK", Response "OK").

I also tried Chat example But even when I try to execute the "Run the app" button the window never displays "connection established" or any chat message. Chrome developer tools throws error:

Uncaught InvalidStateError: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.

I did not install anything related to Java, JS, JSON, Node.js on my pc as I asume that everything runs inside Bluemix.


Solution

  • The underlying issue is a failure to establish a websocket connection with the node-red instance running in Bluemix. This is a known issue when accessing from certain networks that is usually resolved by accessing the application using https rather than http.