json-translator icon indicating copy to clipboard operation
json-translator copied to clipboard

Too many requests

Open visaoo opened this issue 2 years ago • 2 comments

Translation: Bing CLI: Yes Version: 1.6.3

It could have a delay for each request, if you have the option for the dev to put it would be great BingTimeout: 8e3 GoogleTimeout: 5e3 ...

o Translating. Please wait. 89 of 428 translated.Translation error: HTTPError: Response code 429 (Too Many Requests)
    at Request.<anonymous> (C:\Users\lw\AppData\Roaming\nvm\v18.14.1\node_modules\@parvineyvazov\json-translator\node_modules\bing-translate-api\node_modules\got\dist\source\as-promise\index.js:118:42)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  code: 'ERR_NON_2XX_3XX_RESPONSE',
  timings: {
    start: 1678404337629,
    socket: 1678404337629,
    lookup: 1678404337629,
    connect: 1678404337647,
    secureConnect: 1678404337715,
    upload: 1678404337715,
    response: 1678404337878,
    end: 1678404337879,
    error: undefined,
    abort: undefined,
    phases: {
      wait: 0,
      dns: 0,
      tcp: 18,
      tls: 68,
      request: 0,
      firstByte: 163,
      download: 1,
      total: 250
    }
  }
}

visaoo avatar Mar 09 '23 23:03 visaoo