From 3afa650200bf3957727e3213862a8ded4dfef1ce Mon Sep 17 00:00:00 2001 From: Alex Savin Date: Wed, 2 Jul 2025 16:12:50 +0300 Subject: [PATCH] More debug --- client.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client.go b/client.go index f13e53e..b72b90d 100644 --- a/client.go +++ b/client.go @@ -271,7 +271,11 @@ func (c *Client) auth() *Response { "pushToken": ""} reqURL := MOBILE_API_VERSION + apiURLs["API_LOGIN"] // TODO: Add error handling - resp, _ := c.execute(POST, reqURL, params, false) + resp, err := c.execute(POST, reqURL, params, false) + if err != nil { + c.logger.Error("error while executing auth request", "request", "auth", "error", err.Error()) + return nil + } c.logger.Debug("AUTH HTTP OUTPUT", "body", resp) return resp }