We have a node app that sends emails via the Gmail API running on a Digital Ocean server. Today, we've started seeing timeout and server unreachable errors when calling the API, but haven't been able to reproduce these. They seem to happen to around 30-40% of requests we make to Google. Here are example error responses:
{"code":"ETIMEDOUT","errno":"ETIMEDOUT","syscall":"connect","address":"172.217.6.205","port":443}
{"code":"ENETUNREACH","errno":"ENETUNREACH","syscall":"connect","address":"2607:f8b0:4006:805::200d","port":443}
We're not exceeding a gmail API quota and I don't see any other messages as to why Google would reject our requests. Any ideas as to what is happening here?