I am currently trying to use the google developer SDK. In there i am trying to utilize the google translate functionality. The translation works fine when sending in a request using my access token obtained through the google developer console. But using this SDK it keeps throwing a 403 User Rate Limit Exceeded
this is the code in question :
googleService.defineAction$(function translateMessage(target, message, projectID) {
const translateClient = Translate({
projectId: projectId
})
console.log(target, message)
return translateClient.translate(message, target)
.then(function handleTranslateResults(results) {
console.log('result : ', result)
return result
})
.catch(function handle(err) {
console.log('err : ', err)
})
})
I have billing enabled. I am the only one sending requests in with only about 10 characters each time. This is why i am confused about this, there is no possible way i could have hit the limit.
Checking my quotas and request logs confirms this.
I have also tried initializing the translate client outside of the function when the code is loaded in but this produces the same results.
I do know this question has been asked before but none of those answers provide the solution to my problem and i cannot find an explanation for it online.
via user4901806
No comments:
Post a Comment