plainheart / bing-translate-api

A simple and free API for Bing & Microsoft Translator for Node.js
https://github.com/plainheart/bing-translate-api
MIT License
156 stars 28 forks source link

Cannot read property 'translations' of undefined #3

Closed codingMASTER398 closed 3 years ago

codingMASTER398 commented 3 years ago

This error occurs after doing lots (around 500 in 30 minutes) of translations TypeError: Cannot read property 'translations' of undefined at translate (/home/runner/Bibletranslation/node_modules/bing-translate-api/src/index.js:117:31) at processTicksAndRejections (internal/process/task_queues.js:97:5) I used the same code as in the docs to test.

Its not ratelimiting i think, opening up bing.com and writing some quick code to ping their servers with translations works.

codingMASTER398 commented 3 years ago

Note: i am using repl.it to translate the bible

plainheart commented 3 years ago

Thanks. I tried to fix some potential bugs, but it still can't solve the bing translator's issue that requires the captcha. I tested it 500 times within 30 minutes in my local environment, it works. But it can't even work 1 time in the Travis ci. Maybe it blocked the IP.