From d249bcdf94ab3f05ac6a53e3ad68147fff760c41 Mon Sep 17 00:00:00 2001 From: mr Date: Wed, 6 Nov 2024 16:09:56 +0100 Subject: [PATCH] tooling --- tools/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/api.go b/tools/api.go index 2ae6320..293494d 100644 --- a/tools/api.go +++ b/tools/api.go @@ -136,7 +136,7 @@ func (a *API) CheckRemoteAPIs(apis []DataType) (State, map[string]string, error) reachable := false for _, api := range apis { // Check the state of each remote API in the list var resp APIStatusResponse - b, err := caller.CallGet(api.API()+":8080", "/oc/version/status") // Call the status endpoint of the remote API (standard OC status endpoint) + b, err := caller.CallGet("http://"+api.API()+":8080", "/oc/version/status") // Call the status endpoint of the remote API (standard OC status endpoint) fmt.Println(err) if err != nil { state = REDUCED_SERVICE // If a remote API is not reachable, return reduced service