I am sending data from Predix Machine through spillway and websocket river, I am getting below error:
Spillway Transfer Failed. Details: "Status for transfer UUID "87ab8c74-8c34-41cb-b4ba-3666d84ad4c7" in River "WS Sender Service-1". State: FAILED Status Code: -1100 Status Message: Request 87ab8c74-8c34-41cb-b4ba-3666d84ad4c7 timed out".
I am getting this output from predix machine startup logs. I have configured Predix Machine to send data to Timeseries as well as my custom websocket. Data is successfully being send to time series but not to custom websocket server.
Answer by Munene · Aug 23, 2017 at 10:26 AM
The other case clarifies how to set up with different spillways. But the websocket river will only send to a Timeseries destination. If you are reading the other posts to mean that websocketriver will send to a custom websocket destination, there may be an error there.
Answer by Munene · Aug 22, 2017 at 09:25 AM
Hi @priyanka.kakkar@itcinfotech.com,
I wonder if you have configured WebsocketRiver to send data to your custome Websocket endpoint.
This does not work - WebsocketRiver is exclusively for sending data to Predix Timeseries.
You would need to create your own river using the IRiver API in order to send to your custom endpoint. There is a Websocket client service (with a sample available in the Predix Machine SDK) that would be very handy to for this.
I have configured 2 websocket rivers and followed the below mentioned 2 forum questions to do that. One websocket river forwards the data to the predix time-series and other to push to custom websocket
https://forum.predix.io/articles/9480/developing-a-simple-custom-microservice-to-collect.html
http://forum.predix.io/questions/14388/how-to-configure-predix-machine-for-two-websocket.html