websockets on GKE with istio gives 'no healthy upstream' and 'CrashLoopBackOff'

人走茶凉 提交于 2019-12-05 13:57:36

Using uws (uWebSockets) as websocket engine causes these errors. When I swap in my backend app this code:

app.configure(socketio({
  wsEngine: 'uws',
  timeout: 120000,
  reconnect: true
}))

for this:

app.configure(socketio())

Everything works as expected.

EDIT: Now it also works with uws. I used alpine docker container which is based on node 10, which does not work with uws. After switching to container based on node 8 it works.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!