404 Resource not found error appears when trying to access Azure OpenAI deployment
Luqman Rumaiz
0
Reputation points
Hi all, I am encountering a 404 error in my FastAPI Python backend logs when attempting to access an OpenAI API deployment. The logs show the following error:
[09/19/24 07:18:51] DEBUG https://hbs-openai-poc.openai connectionpool.py:549
.azure.com:443 "POST
/openai/deployments/peopleshr
-help-chat-4o+/chat/completio
ns?api-version=2024-02-01
HTTP/1.1" 404 198
DEBUG message='OpenAI API response' util.py:60
path=https://hbs-openai-poc.openai.azure
.com//openai/deployments/peopleshr-help-
chat-4o+/chat/completions?api-version=20
24-02-01 processing_ms=None
request_id=None response_code=404
INFO error_code=DeploymentNotFound util.py:67
error_message='The API deployment for
this resource does not exist. If you
created the deployment within the last 5
minutes, please wait a moment and try
again.' error_param=None error_type=None
message='OpenAI API error
When accessing the deployments with a simple GET request, I also receive a "404 resource not found" error. I've ensured that the deployment URI is correct and have followed the provided troubleshooting steps, but the issue persists.
This same issue happens in even deployments in other subscriptions, any guidance on resolving this would be greatly appreciated.
Sign in to answer