Cloud Development Kit

Connect Error: Error: Server responded with a non-101 status: 200 OK

 Hi,

I have been trying to setup a WebSocket Client from my NodeJS server to the MyScript server. However, I am not getting the response that is expected:

Connect Error: Error: Server responded with a non-101 status: 200 OK

I have tried two different WebSocket implementations and they both return the same error, that the server is returning 200 when it should be returning 101.

https://github.com/TakahikoKawasaki/nv-websocket-client/issues/98

https://github.com/websockets/ws/issues/1093

Browser based WebSockets appear to workaround the issue with the server response.

Do you have a reference example of a NodeJS WebSocket which connects to your server?

Thanks

Phil

1 Comment

Dear Phil,


Currently, providing strokes as you do in WebSocket is not working properly at present.


The solution consists in using the REST API of our CDK.


Best regards,


Olivier

Login or Signup to post a comment