Unknown error in sending http request with Azure Cognitive Services
On my testing machine (Github codespace) everything works, but when I publish my changes and update my main project (Server located in Brazil), I get the following:
Error reason: ImageAnalysisErrorReason.CONNECTION_FAILURE
Error code: -1
Error message: Unknown error in sending http request
Additionally, if I make a Postman request to the same endpoint or I navigate to the endpoint in my browser, I get:
{
"error": {
"code": "404",
"message": "Resource not found"
}
}
I would expect the response to be something along the lines of "Invalid authentication" instead of "Not found"
Some searching online led me to a stackoverflow issue suggesting my endpoint formatting was incorrect, my endpoint shown on the Azure dashboard is https://[resourceName].cognitiveservices.azure.com/
whereas my speech endpoint is
https://eastus.api.cognitive.microsoft.com/sts/v1.0/issuetoken
I'm wondering if its incorrect?? Each endpoint is formatted differently, and on the stackoverflow issue I notice the solution was to use an endpoint similar to my speech endpoint, but this has not worked either.
I am using Python with the azure-ai-vision
sdk version 0.13.0b1