|
|
|
@@ -5,7 +5,6 @@ import ( |
|
|
|
schsdk "gitlink.org.cn/cloudream/common/sdks/scheduler" |
|
|
|
"gitlink.org.cn/cloudream/common/utils/http2" |
|
|
|
"gitlink.org.cn/cloudream/common/utils/serder" |
|
|
|
"io" |
|
|
|
"net/url" |
|
|
|
"strings" |
|
|
|
) |
|
|
|
@@ -59,13 +58,12 @@ func (c *Client) CreateJob(req CreateHPCJobReq, token string) (*CreateJobResp, e |
|
|
|
} |
|
|
|
|
|
|
|
// 打印resp.Body内容 |
|
|
|
body, err := io.ReadAll(resp.Body) |
|
|
|
if err != nil { |
|
|
|
println("Error reading response body:", err) |
|
|
|
} |
|
|
|
|
|
|
|
// Print the response body as a string |
|
|
|
println("Response Body:", string(body)) |
|
|
|
//body, err := io.ReadAll(resp.Body) |
|
|
|
//if err != nil { |
|
|
|
// println("Error reading response body:", err) |
|
|
|
//} |
|
|
|
// |
|
|
|
//println("Response Body:", string(body)) |
|
|
|
|
|
|
|
contType := resp.Header.Get("Content-Type") |
|
|
|
if strings.Contains(contType, http2.ContentTypeJSON) { |
|
|
|
|