Skip to content

Commit d41229d

Browse files
alexv-smirnovRaubzeug
authored andcommitted
build: refresh Embedded UI (v6.36.1) (ydb-platform#11833)
Co-authored-by: Raubzeug <Raubzeug@users.noreply.github.com>
1 parent ea7a15c commit d41229d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ydb/core/viewer/json_pipe_req.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,8 @@ void TViewerPipeClient::HandleResolve(TEvStateStorage::TEvBoardInfo::TPtr& ev) {
795795
if (DatabaseBoardInfoResponse->IsOk()) {
796796
ReplyAndPassAway(MakeForward(GetNodesFromBoardReply(DatabaseBoardInfoResponse->GetRef())));
797797
} else {
798-
ReplyAndPassAway(GetHTTPBADREQUEST("text/plain", "Failed to resolve database - no nodes found"));
798+
Direct = true;
799+
Bootstrap();
799800
}
800801
}
801802
}
@@ -825,6 +826,7 @@ void TViewerPipeClient::RedirectToDatabase(const TString& database) {
825826
Become(&TViewerPipeClient::StateResolveDatabase);
826827
}
827828

829+
// Call only from Bootstrap() method
828830
bool TViewerPipeClient::NeedToRedirect() {
829831
if (Event) {
830832
Direct |= !Event->Get()->Request.GetHeader("X-Forwarded-From-Node").empty(); // we're already forwarding

0 commit comments

Comments
 (0)