1

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?

Mr.Rebot
  • 6,703
  • 2
  • 16
  • 91
HHH
  • 149
  • 2
  • 12
  • 1
    can happen if your access token is expired – Januka samaranyake Dec 22 '16 at 04:38
  • Thanks but I've double checked these queries locally and haven't had any problems running them. – HHH Dec 22 '16 at 09:25
  • 1
    This error may not be connected to your Gmail API, but more on the Node.js configuration. You will receive this error if you didn't received the request response in a given time. You may want to check this related [SO post](http://stackoverflow.com/a/23633266/5995040) which talks about the timeout module of nodejs. There are also some advise on creating option how to handle this kind of error. Hope this helps. – Mr.Rebot Dec 22 '16 at 15:35

0 Answers0