Hello Rui,
Thanks for reaching out. The error seems to be related to the client libraries and not the API. You might find this post on the Github Issue Tracker useful to mitigate the error faced on your end. If not, I would recommend posting your concern on the Github Issue Tracker as our client libraries team will be able to assist you better with your concerns. Let us know if you have any API related concerns.
Regards,
Nikisha Patel, Google Ads API Team