Removed unnecessary cookies
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 24s

This commit is contained in:
2025-05-22 00:09:44 -04:00
parent 67b9d218a7
commit 19134aa756
2 changed files with 4 additions and 7 deletions

View File

@ -5,7 +5,6 @@ import (
"fmt"
"io"
"log/slog"
"net/http"
"sync"
"time"
@ -28,8 +27,7 @@ type Client struct {
baseURL string
credentials credentials
httpClient *resty.Client
cookies []*http.Cookie
country string //
country string // USA | CA
updateInterval int // 7200
fetchInterval int // 360
currentVin string
@ -821,7 +819,7 @@ func (c *Client) execute(requestUrl string, method string, params map[string]str
"serviceRequestId": serviceRequestId,
}).
Get(pollingUrl)
resBytes, _ := io.ReadAll(resp.Body)
c.log.Debug("POLLING HTTP OUTPUT", "body", string(resBytes))
// {"success":false,"errorCode":"404-soa-unableToParseResponseBody","dataName":"errorResponse","data":{"errorLabel":"404-soa-unableToParseResponseBody","errorDescription":null}}
@ -851,7 +849,6 @@ func (c *Client) execute(requestUrl string, method string, params map[string]str
time.Sleep(3 * time.Second)
}
}
// fmt.Printf("[DEBUG] HTTP OUTPUT >> %v\n", string([]byte(resp.Body())))
return resBytes