I had a similar error thrown using one of DocumentClient
s async functions. I used await
correctly for each call but then I found that this was caused by a proxy server interfering with the traffic. So for those working from inside a company network - consider checking this.