Thank you for reaching out for help with your HoloLens 2 project. It sounds like you're having issues with the DetectImage function in the Azure Cloud Services tutorial. Specifically, you're getting a BadRequest error with a request message that includes the Prediction-Key and Content-Length headers.
First, I would recommend double-checking that the Prediction-Key and projectID in the request message match the values you have set up in your Custom Vision project. It's possible that there's a discrepancy between the values you're using in your code and the values in your Custom Vision project.
Another potential issue could be with the content of the request message. The error message mentions that the Content-Length is 45769, which suggests that the request is including a large amount of data. It's possible that the request is including unnecessary data, or that the data is not properly formatted.
I would recommend checking the documentation for the Custom Vision service to ensure that you're formatting the request correctly. Additionally, you may want to try using a tool like Fiddler or Postman to inspect the HTTP request and response messages to see if there are any issues with the request that you're not aware of.
Finally, it's possible that there's an issue with the Custom Vision service itself. I would recommend checking the Azure status page to see if there are any known issues with the service. If there are any issues, you may need to wait for them to be resolved before you can continue working on your project.
I hope these suggestions are helpful in resolving the issue you're experiencing.