I have been using Translation API from last month, I had a small python function on AWS Lambda calling the REST API in this way:
Very straightforward, nothing fancy. I am not using the google-cloud-python library because I need to host my function on AWS Lambda, the cloud library has way too many dependencies that make it impossible to work in AWS Lambda.
However, as I find out later in the log, this request timeout (30sec) once a while without any pattern. Once it started to fail, it failed continuously. But after a few hours, it went back to normal.
- Quota & load are definitely not the reason, since there are less than 100 call per day, and all of them are short phrases (less than 5 characters).
- The word & the language are definitely not the reason, since the same request works fine after a few hours.
- The requests were always sent from AWS Lambda in US East region, so I did not expect network connectivity to be the reason
I only saw one post back in 2015 asking about similar question (randomly timeout), and there were no clear answer then that apply to my case.
I hope to get some help from Google Support Team, I will need to use the Translation API a lot more very soon, and the frequent timeout (like almost every day) is going to be a big blocking issue to move on.
Regards,
P.P