0

Error related to translation using Azure's Translate API {"error":{"code":400000,"message":"One of the request inputs is not valid."}} i have no idea why the error message appears

Settings

Error-Message

user3392296
  • 644
  • 4
  • 16

1 Answers1

2

According to the translator documentation:

The body of the request is a JSON array. Each array element is a JSON object with a string property named Text, which represents the string to translate.

And you are passing text in query string which is wrong.

SteppingRazor
  • 1,222
  • 1
  • 9
  • 25