I am using Google Api Nodejs Client and I receive frequently some timeouts on my API calls (the biggest part of my requests are on the Gmail Api). I can perform at the same time some Google Cloud SQL requests, so it does not seem to be a network problem on my server. You can find below some of the timeouts that are in my logs.
{"code":"ETIMEDOUT","errno":"ETIMEDOUT","syscall":"connect","address":"216.58.219.234","port":443}
{"code":"ETIMEDOUT","errno":"ETIMEDOUT","syscall":"connect","address":"216.58.219.202","port":443}
{"code":"ETIMEDOUT","errno":"ETIMEDOUT","syscall":"connect","address":"209.85.201.95","port":443}
Is there any way to avoid these timeouts ? It is possible to specify fields that will be retrieved, does these fields can reduce the amount of timeout ?
I receive sometimes some 429 or 500 result code from the google api, which is nice and normal (according to the doc) but these timeouts are not at all what I expected.