A tons of minor fixes for the onboarding flow and search systems

This commit is contained in:
Frikky
2023-11-06 08:32:58 +01:00
parent 492c3c3258
commit cf4aa71f80
18 changed files with 799 additions and 367 deletions
+3
View File
@@ -1410,6 +1410,7 @@ func main() {
continue
}
//defer newresp.Body.Close()
if newresp.StatusCode == 405 {
log.Printf("[WARNING] Received 405 from %s. This is likely due to a misconfigured base URL. Automatically swapping to GET request (backwards compatibility)", fullUrl)
@@ -1619,6 +1620,7 @@ func main() {
continue
}
defer resultResp.Body.Close()
body, err := ioutil.ReadAll(resultResp.Body)
if err != nil {
log.Printf("[ERROR] Failed reading confirm body: %s", err)
@@ -1913,6 +1915,7 @@ func sendWorkerRequest(workflowExecution shuffle.ExecutionRequest) error {
return err
}
defer newresp.Body.Close()
body, err := ioutil.ReadAll(newresp.Body)
if err != nil {
log.Printf("[ERROR] Failed reading body in worker request body to worker on %s: %s", streamUrl, err)