在kubernetes上部署时,bokeh中的WebSocket握手错误?

问题描述 投票:0回答:1

我使用bokeh开发了一个应用程序,并使用以下方法运行它 bokeh serve app.py.

应用程序在本地运行正常,但当我将其部署在prod(kubernetes)上时,它显示以下错误。

在应用程序日志上

400 GET /app/ws (100.110.109.133) 0.46ms

在浏览器控制台

bokeh.min.js?v=57d29d5936e494351385d736f792154c:551 WebSocket connection to 'ws://***/app/ws' failed: Error during WebSocket handshake: Unexpected response code: 400

bokeh.min.js?v=57d29d5936e494351385d736f792154c:551 [bokeh] Failed to connect to Bokeh server: Could not open websocket

xqTrUSbsN4huCcddNcjrkVZtk46inlGUacd44jX5kzED: Error: Could not open websocket

enter image description here

如何调试问题的原因?我觉得k8的infra有些不对劲,有些头被屏蔽了,或者是nginx配置的问题,但是如何调试原因?

nginx kubernetes websocket bokeh
1个回答
0
投票

如何调试问题的原因?

由于你有一个工作设置,只要比较两组头文件的 ws 请求--一个来自工作中的设置,一个来自不工作的设置.找到丢失的头文件或头文件的值似乎是错误的,并尝试找出它们丢失或被替换的原因。

© www.soinside.com 2019 - 2024. All rights reserved.