I have array of objects. From which I have one key value pair on which I want to translate it. By calling translate() in loop getting error of Response code 429 (Too Many Requests)
Below is my code:
for(let obj of notifyData) {
translate(obj.body, {from: 'en', to: 'hr'})
.then((response) => {
console.log('tr...', response);
})
.catch((err) => {
console.log('error in translation...',err);
})
}
the function is not event taking first element from the array. i.e. array[0]. By doing this too, I am getting too many requests error..
I have array of objects. From which I have one key value pair on which I want to translate it. By calling translate() in loop getting error of Response code 429 (Too Many Requests)
Below is my code:
the function is not event taking first element from the array. i.e. array[0]. By doing this too, I am getting too many requests error..
Please help me out..