diff --git a/client/director.go b/client/director.go index 2e2178d14..e44afca7b 100644 --- a/client/director.go +++ b/client/director.go @@ -20,6 +20,7 @@ package client import ( "encoding/json" + "fmt" "io" "net/http" "net/url" @@ -159,6 +160,7 @@ func QueryDirector(source string, directorUrl string) (resp *http.Response, err // Check HTTP response -- should be 307 (redirect), else something went wrong body, _ := io.ReadAll(resp.Body) if resp.StatusCode != 307 { + fmt.Printf("\n\n\nresp.StatusCode %d\n\n\n", resp.StatusCode) var respErr directorResponse if unmarshalErr := json.Unmarshal(body, &respErr); unmarshalErr != nil { // Error creating json return nil, errors.Wrap(unmarshalErr, "Could not unmarshall the director's response")