12 Replies Latest reply on Aug 10, 2016 11:45 AM by Marcos Vainer Loeff

    Error during WebSocket handshake: Unexpected response code: 400

    AndresUlloa-Xompass

      Hi,

      I'm getting the following error when trying to update the data using websocket using your example:

      Error during WebSocket handshake: Unexpected response code: 400

       

      Channels feature was added properly to the webapi installation.

      I worked witht his example:

      New Features in PI Web API 2015 R3 (JavaScript Demo)

       

      I Tried the following with same results:

      1. My Node.js + WebSocket program
      2. websocket.org - Powered by Kaazing
      3. Testing from the same pi server machine
      4. Allowing Anonymous login
      5. WebAPI 2015 R3 and WebAPI 2016 SP1

       

      It seems to be happening after the authorization is approved.

      ss1.png

      I'm testing using the following webapi settings to avoid issues:

       

      Appreciate your help.

       

      Thanks a lot.