Google Translate

FREEMIUM
Por Google Cloud | Actualizada il y a 23 jours | Text Analysis
Popularidad

9.9 / 10

Latencia

455ms

Nivel de servicio

100%

Health Check

N/A

Volver a todas las conversaciones

This API is not working .... not responding and not providing any response

Rapid account: Gopinath It 89
gopinath.it89
il y a 3 ans

Tried from various environments and getting the below response …


Unexpected error Error during Web API HTTP Request
HTTP Status Code: 502
HTTP Response Content: {“messages”:“The API is unreachable, please contact the API provider”, “info”: “Your Client (working) —> Gateway (working) —> API (not working)”}

Rapid account: Hoursirak 0102
hoursirak0102 Commented il y a 3 ans

const key = "your key"
const qs = obj => {
return new URLSearchParams(obj).toString();
}

const data = qs({
q: word,
source: “en”,
target: “es”,
})

const options = {
method: “POST”,
url: “https://google-translate1.p.rapidapi.com/language/translate/v2”,
headers: {
“content-type”: “application/x-www-form-urlencoded”,
“x-rapidapi-key”: key,
“x-rapidapi-host”: “google-translate1.p.rapidapi.com”,
},
data: data,
};
axios
.request(options)
.then(function (response) {
console.log(response.data);
})
.catch(function (error) {
console.error(99, error);
});

This work for me, essentially u have to build the query string first

Rapid account: Themagician 031
themagician031 Commented il y a 3 ans

@gopinath.it89 did you resolve it ? facing the same problem

Rapid account: Retired QQ
RetiredQQ Commented il y a 3 ans

Hello, I made some simple translator. Please see my API projects.

Rapid account: Bchooxg
bchooxg Commented il y a 3 ans

Dang i thought i was the only one

Rapid account: Niki Ahlskog
niki.ahlskog Commented il y a 3 ans

Same, not working

Rapid account: Scott 0406
scott0406 Commented il y a 3 ans

Getting the same error.

Únase a la conversación, añada un comentario a continuación:

Inicie sesió/Regístrese para publicar nuevos comentarios