provectus/kafka-ui

FE: Handle 504s properly

开放

#4,075 创建于 2023年8月1日

 (4 条评论) (0 个反应) (0 位负责人)Java (977 个派生)batch import
area/uxgood first issuescope/frontendstatus/acceptedtype/bug

仓库指标

星标
 (7,799 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Issue submitter TODO list

  • I've looked up my issue in FAQ
  • I've searched for an already existing issues here
  • I've tried running master-labeled docker image and the issue still persists there
  • I'm running a supported version of the application which is listed here

Describe the bug (actual behavior)

when kafka-ui can't access the remote broker, it waits for a long time (this should also have timeout). Meanwhile in the UI you see the loader in the topics page.

In the network tab I can see long request:

http://server/api/clusters/<cluster>/topics?page=1&perPage=25&showInternal=true

At some point it fails with 504, but the loader is still shown on the UI

Expected behavior

Loader should be removed and the error message should be shown

Your installation details

56fa824

Steps to reproduce

  1. make sure kafka ui can't access remote broker.
  2. visit topics page in that cluster

Screenshots

No response

Logs

no logs in the app output

Additional context

No response

贡献者指南