Making requests to Trello API with UniRest in Java

I am trying to use UniRest in a SpringBoot application to make calls to the trello api. When I use the same URL with the key and token in my browser, I receive the JSON response as expected. When I send the request with Uni Rest I receive this warning and a null responseObject:

Invalid cookie header: "Set-Cookie: dsc=14a93debb24c9a961cf2290abfe9aa921757f1445015d8a1c6c3a1e651ebb7a3; Path=/; Expires=Sun, 20 Feb 2022 04:19:25 GMT; Secure". Invalid 'expires' attribute: Sun, 20 Feb 2022 04:19:25 GMT

Here is the code for the request I am using.

    public void getAllBoards() throws IOException {
        HttpResponse<JsonNode> response = null;
        JSONObject responseJSON = null;
        try
        {
            response = Unirest.get("https://api.trello.com/1/members/me/boards?key=" + key + "&token=" + token)
                    .asJson();
            responseJSON = response.getBody().getObject();
            System.out.println(responseJSON);
        }
        catch (UnirestException e)
        {
            e.printStackTrace();
        }
        catch(NullPointerException n)
        {
            n.printStackTrace();
        }
    }