Cloud Development Kit

Answered

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


Best Answer

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

1 Comment

Answer

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