Integration of my Ruby application with google translate API stopped working on my server. From outside the application also fails to get the correct response from the API.
In the app and through curl, I get the error:
403. That’s an error.
Your client does not have permission to get URL <code>/language/translate/v2</code> from this server. That’s all we know.
But if I check it through my home computer, then everything works correctly:
curl "https://translation.googleapis.com/language/translate/v2?key=#{MY_GOOGLE_KEY}&source=en&target=de&q=Hello%20World"
==>
{
"data": {
"translations": [
{
"translatedText": "Hallo Welt"
}
]
}
}
Could there be problems in the system itself on the server?
cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
up1
checked on the same system with debian 8 and got the current answer from api. So, now I have a theory that there is some problem with the ip (although the ip is included in the trusted list)
up2
the main reason was the blocking of ip on the territory of germany by google. here is message by Linode:
We've been alerted of reports from customers experiencing the same issue with accessing Google's API. From what we have gathered so far, Google is blocking our IPv6 /64 block in Frankfurt. We've already reached out to Google and they are currently looking into it.