Google Translate

फ्रीमियम
द्वारा Google Cloud | अपडेट किया गया 12日前 | Text Analysis
लोकप्रियता

9.9 / 10

लेटेंसी

482ms

सेवा का स्तर

100%

Health Check

N/A

सभी चर्चाओं पर वापस जाएं

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

Rapid account: Gopinath It 89

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 3年前

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 3年前

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

Rapid account: Retired QQ
RetiredQQ Commented 3年前

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

Rapid account: Bchooxg
bchooxg Commented 3年前

Dang i thought i was the only one

Rapid account: Niki Ahlskog
niki.ahlskog Commented 3年前

Same, not working

Rapid account: Scott 0406
scott0406 Commented 3年前

Getting the same error.

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें