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

Something went wrong! The response is {"statusCode":205,"errorMessage":""} #19

Closed thesammet closed 1 year ago

thesammet commented 1 year ago

const { translate } = require('bing-translate-api'); const translationFunction = async (vocabulary, mainLanguage, languageTo) => { try { const res = await translate(vocabulary.toLowerCase(), mainLanguage, languageTo, true) return res } catch (error) { return error } } module.exports = translationFunction

This is my node.js code piece. All values are correct and the system was worked before nearly 1 months ago. But nowadays that error shown. The response is Something went wrong! The response is {"statusCode":205,"errorMessage":""}. The status 205 is reset content but I can't find any relation with the code. Please can you fix that

plainheart commented 1 year ago

Refer to #16. Please upgrade to v2.7.0 or later and try again.

thesammet commented 1 year ago

Thanks so much.