第 12 章 配置 OpenShift 连接超时
默认情况下,OpenShift 路由配置为超时超过 30 秒的 HTTP 请求。这可能会导致 Business Central 中的会话超时问题,从而导致以下行为:
- "无法完成您的请求。以下异常发生:(TypeError): Cannot read property 'indexOf' of null"。
- "无法完成您的请求。以下异常发生:(TypeError): b is null"。
- 当单击 Business Central 中的 Project 或 Server 链接时,会显示空白页面。
所有 Business Central 模板均已包含扩展超时配置。
要在 Business Central OpenShift 路由中配置较长的超时时间,请在目标路由中添加 haproxy.router.openshift.io/timeout: 60s
注解:
有关特定于全局路由的超时注解的完整列表,请参阅 OpenShift 文档。