Why do I get Error 404 while accessing API Endpoint of Cognitive Services?

MT 0 Reputation points
2025-02-22T11:32:37.4433333+00:00

Hello,

We were using the Azure cognitive services API endpoint.

Recently, while accessing the endpoint, it gives error 404- Resource not available.

Request to Suggest and help to resolve the issue on priority.

Thank you.

Azure AI Custom Vision
Azure AI Custom Vision
An Azure artificial intelligence service and end-to-end platform for applying computer vision to specific domains.
272 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Prashanth Veeragoni 640 Reputation points Microsoft Vendor
    2025-02-24T03:47:15.36+00:00

    Hi MT,

    Thank you for reaching out to Microsoft Q&A forum!

    The 404 - Resource Not Available error usually occurs when the API endpoint cannot be reached, or the requested resource does not exist. Below are possible reasons and to resolve this issue.

    Incorrect Endpoint URL:

    Ensure that you are using the correct API endpoint URL.

    Double-check your endpoint URL in the Azure Portal under Cognitive Services > Your Resource > Keys and Endpoint.

    API Version Mismatch:

    Some Azure Cognitive Services require a valid API version in the request.

    If your API version is deprecated or missing, the endpoint might return a 404 error.

    Use a valid API version.

    If your request lacks a valid API key, it may result in a 404 error.

    Ensure you are passing the correct Subscription Key in the request header

    If the resource was deleted or moved to another region, the API will return 404.

    Go to Azure Portal → Check Cognitive Services Resource → Ensure it exists and is active.

    Verify its region and match it with the one in your request.

    If you're accessing from a corporate network, firewall rules may block the request.

    Try accessing from a different network (e.g., personal hotspot).

    Whitelist Azure endpoints in your firewall.

    Hope this helps. Do let us know if you any further queries.   

    ------------- 

    If this answers your query, do click Accept Answer and Yes for was this answer helpful.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.