Browse Source

提交代码

tags/v1.22.11.3^2
ychao_1983 3 years ago
parent
commit
f660adede0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/modelarts/modelarts.go

+ 2
- 2
modules/modelarts/modelarts.go View File

@@ -976,8 +976,8 @@ func getJupyterBaseUrl(url string) string {
func getCookiesAndCsrf(client *resty.Client, jupyterUrl string) ([]*http.Cookie, string) {

var cookies []*http.Cookie
for i := 0; i < 4; i++ {
res, err := client.R().Get(jupyterUrl)
for i := 0; i < 10; i++ {
res, err := client.R().SetCookies(cookies).Get(jupyterUrl)
if err != nil {
log.Error("browser jupyterUrl failed.")
return cookies, ""


Loading…
Cancel
Save