question

erikabreu avatar image
0 Votes"
erikabreu asked Shravani-6488 published

Face BadRequest error

I am getting the following error using Face: Microsoft.Azure.CognitiveServices.Vision.Face.Models.APIErrorException Message=Operation returned an invalid status code 'BadRequest'. I am trying to find similar faces in a pool of images. I made sure i am using the right key and enpoint and i have followed the example in the following url:https://docs.microsoft.com/en-us/azure/cognitive-services/face/quickstarts/client-libraries?tabs=visual-studio&pivots=programming-language-csharp, the one under Find similar face.

I will appreciate any help.

Thanks.

azure-face
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.

1 Answer

ramr-msft avatar image
0 Votes"
ramr-msft answered Shravani-6488 published

@erikabreu Thanks for the question. Please try the following sample for quickstart Find Similar face using the face client library. Please find the snapshot for the same.
44842-image.png



image.png (33.0 KiB)
· 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.

Thanks @ramr-msft

If i follow the example, it works, however when i try a different url for images it doesn't. Are there any specifics for the url to use?

0 Votes 0 ·

Hi even if I give local file. it I having same issue. Is there any particular format for URL.

0 Votes 0 ·