From f14011fb4360b1476554b47281b599526badffc9 Mon Sep 17 00:00:00 2001 From: Frikky Date: Wed, 11 Feb 2026 12:51:21 +0100 Subject: [PATCH] Forced in content type json to make sure requests work --- functions/onprem/worker/worker.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/functions/onprem/worker/worker.go b/functions/onprem/worker/worker.go index a25b6d37..0c6b97ec 100644 --- a/functions/onprem/worker/worker.go +++ b/functions/onprem/worker/worker.go @@ -4087,6 +4087,9 @@ func sendAppRequest(ctx context.Context, incomingUrl, appName string, port int, } } + // Content type required + req.Header.Set("Content-Type", "application/json") + newresp, err := client.Do(req) if err != nil { // Another timeout issue here somewhere @@ -4108,7 +4111,7 @@ func sendAppRequest(ctx context.Context, incomingUrl, appName string, port int, } if strings.Contains(fmt.Sprintf("%s", err), "no such host") { - log.Printf("[DEBUG] SHOULD be Removing references to location for app %s as to be rediscovered", action.AppName) + log.Printf("[ERROR] Should be removing references to location for app '%s' as to be rediscovered. URL: %s. Error: %s", action.AppName, streamUrl, err) //for k, v := range portMappings { // if strings.Contains(strings.ToLower(strings.ReplaceAll(action.AppName, " ", "_"))) {