Removed unnecessary cookies
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 24s
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 24s
This commit is contained in:
@ -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
|
||||
|
@ -179,8 +179,8 @@ type GeoLocation struct {
|
||||
|
||||
// Door .
|
||||
type Door struct {
|
||||
Position string
|
||||
SubPosition string
|
||||
Position string // front | rear | boot | enginehood
|
||||
SubPosition string // right | left
|
||||
Status string
|
||||
Updated time.Time
|
||||
}
|
||||
|
Reference in New Issue
Block a user