Azure-docs: Cognitive Services API always returns error: {code: "404", message: "Resource not found"}

Created on 12 Aug 2019  路  8Comments  路  Source: MicrosoftDocs/azure-docs

The cognitive services API is always returning error: {code: "404", message: "Resource not found"}. I have tried everything but I can't get it to work. Any help would be appreciated.

My code (from https://docs.microsoft.com/en-us/azure/cognitive-services/Computer-vision/quickstarts/javascript-analyze):

Screen Shot 2019-08-11 at 11 03 25 PM

My Azure Resource:

Screen Shot 2019-08-11 at 10 46 11 PM

My Network Headers:

Screen Shot 2019-08-11 at 10 45 53 PM

Thank you in advance for any assistance with this issue.

Pri3 cxp in-progress product-question triaged

Most helpful comment

@lisenkaci Hi, could you please try to change as following: var uriBase =
"https://canadacentral.api.cognitive.microsoft.com/vision/v2.0/analyze";
It works for me well.

image

All 8 comments

@lisenkaci Thank you for the valuable feedback,we are investigating the issue.

Thank you! Let me know if you need any more information.

@lisenkaci Hi, could you please try to change as following: var uriBase =
"https://canadacentral.api.cognitive.microsoft.com/vision/v2.0/analyze";
It works for me well.

image

That worked thank you! where can I find the correct API base to use in the docs? In the Azure portal resource it was different. I just want to understand for the future. Thank you!

@lisenkaci Hi, glad to know it helped! So the end point you find is correct. But there are a lot of product under cognitive services so you need to add suffix of the product.
image
As the document:
image
Basically you just need to change the region. OR you can refer to the Request URL in every API references.
https://westus.dev.cognitive.microsoft.com/docs/services/5adf991815e1060e6355ad44/operations/56f91f2e778daf14a499e1fa

Regards,
Yutong

@lisenkaci
We will now proceed to close this thread. If there are further questions regarding this matter, please respond here and @YutongTie-MSFT and we will gladly continue the discussion.

I am getting issues (Error 404: Resource Not Found) with Translate API
I am using
'https://eastus.api.cognitive.microsoft.com//translate?api-version=3.0&to=de&to=it'

@kartikaynigam Hi, this thread is too old. Could you please open a new one? Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aspnet4you picture aspnet4you  路  50Comments

Frankwayne picture Frankwayne  路  53Comments

andersgidlund picture andersgidlund  路  45Comments

m-andersen picture m-andersen  路  65Comments

clangnerakq picture clangnerakq  路  46Comments