question

absolutealgorithm avatar image
0 Votes"
absolutealgorithm asked romungi-MSFT edited

What is the purpose of warnings array?

when we use azure cognitive services and hit the endpoint you get an empty warnings array in the response body no matter what the service is (Text Analytics, Text Translation etc...). can someone please shed some light on it? what is the use of it with few examples maybe? thank you.

azure-cognitive-services
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

anonymous userrasad Could you please provide the warnings or the methods used to call the endpoint when this message is seen?

0 Votes 0 ·

Look at this endpoint - https://centralindia.dev.cognitive.microsoft.com/docs/services/TextAnalytics-v3-1/operations/Languages

Response 200 has warnings array and it's empty. any idea when will it be filled with data?

0 Votes 0 ·

1 Answer

romungi-MSFT avatar image
2 Votes"
romungi-MSFT answered romungi-MSFT edited

Ok. These are errors or warning while processing the request. You can take a look at the swagger document for details about any field used in request and response. You can also download them from the REST API page from the top right corner.

143466-image.png

         "warnings": {
           "type": "array",
           "description": "Warnings encountered while processing document.",
           "items": {
             "$ref": "#/definitions/TextAnalyticsWarning"
           }
         }

If an answer is helpful, please click on 130616-image.png or upvote 130671-image.png which might help other community members reading this thread.




image.png (7.4 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

okay, got it. thank you.

0 Votes 0 ·