Response body is resulting as empty when credentials are missing or invalid for Translate API in Microsoft Translator Services.

Satya Sarika Sunkara 0 Reputation points
2024-01-11T07:10:54.8166667+00:00

As per the below link, when an error occurs the request should return a JSON response with Error code and Error Message. https://video2.skills-academy.com/en-us/azure/ai-services/translator/reference/v3-0-translate Screenshot 2024-01-11 at 12.31.48 PM

However, in the case of the "credentials missing or invalid" scenario, the request does not return the response body JSON. Please find the attached Postman result as well. Screenshot 2024-01-11 at 12.32.56 PM

Can someone please confirm why the response JSON is missing for only the "credentials missing or invalid" scenario?

Azure Translator
Azure Translator
An Azure service to easily conduct machine translation with a simple REST API call.
363 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,583 questions
{count} votes