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
161 stars 28 forks source link

Failed to request translation service #40

Closed avisharma1996 closed 5 months ago

avisharma1996 commented 5 months ago

Seeing the following error pop up recently: Failed to request translation service

Here is the code I am using:

translate(tweetText, null, 'en')
        .then((result) => {
          logger.info(
            'Detected Source: ' +
              console.log(JSON.stringify(result.translation)) +
              ' for tweet: ' +
              tweetText
          );
          logger.info(result.translation)
          }).catch((error) => {
          logger.error('ERROR: ' + **error.message**);
        });
plainheart commented 5 months ago

It should be working now. Bing's servers were down for some time yesterday.