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

View File

@ -179,8 +179,8 @@ type GeoLocation struct {
// Door . // Door .
type Door struct { type Door struct {
Position string Position string // front | rear | boot | enginehood
SubPosition string SubPosition string // right | left
Status string Status string
Updated time.Time Updated time.Time
} }