MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.26k stars 21.43k forks source link

Sample code does not work #92245

Closed sy-huss closed 2 years ago

sy-huss commented 2 years ago

The sample code rune to line:

ImageAnalysis results = await client.AnalyzeImageAsync(imageUrl, visualFeatures: features);

A 400 Bad request is sent back.

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

YutongTie-MSFT commented 2 years ago

Thanks for the feedback! We are currently investigating and will update you shortly.

YutongTie-MSFT commented 2 years ago

I have forwarded this feedback to content team for investigation and updating, thanks. We will now proceed to close this thread. If there are further questions regarding this matter, please respond here and @YutongTie-MSFT and we will gladly continue the discussion.

sy-huss commented 2 years ago

For anyone else coming across this issue, here is a fix with sample code: https://eax360.com/azure-vision-image-recognition-using-c-net/