The error message you are receiving indicates that an invalid request has been sent. Without more information, it is difficult to determine the exact cause of the error. However, it is possible that the issue could be related to the format or content of the image being passed to the detect_with_stream
method. You may want to double-check that the image is in a supported format and that it meets the requirements of the Face API.
Unfortunately, the provided context does not contain enough information to provide a more specific answer. If you continue to experience issues, you may want to consult the Microsoft Azure SDK for Python documentation or contact Microsoft support for further assistance.
References: