UI: fix failed api calls after restart (#30234)

This commit is contained in:
Michael Geers 2026-05-26 18:29:05 +02:00 • committed by GitHub
parent 45ee243be0
commit 41b4de8783
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 17 additions and 5 deletions

View file

@ -244,6 +244,7 @@ func runRoot(cmd *cobra.Command, args []string) {
// signal ui listening
valueChan <- util.Param{Key: keys.StartupCompleted, Val: false}
valueChan <- util.Param{Key: keys.ApiReady, Val: false}
// metrics
if viper.GetBool("metrics") {
@ -464,6 +465,9 @@ func runRoot(cmd *cobra.Command, args []string) {
}()
}
// signal HTTP API ready
valueChan <- util.Param{Key: keys.ApiReady, Val: true}
if err != nil {
if uw, ok := err.(interface{ Unwrap() []error }); ok {
valueChan <- util.Param{Key: keys.Fatal, Val: uw.Unwrap()}