Hi Team ,I am trying to use Text analytics in my xamarin mobile application but getting below issue Microsoft.Azure.CognitiveServices.Language.TextAnalytics.Models.ErrorResponseException: 'Operation returned an invalid status code 'NotFound'' . Do you have any resolutions for this
readonly static TextAnalyticsClient _textAnalyticsApiClient = new TextAnalyticsClient(new ApiKeyServiceClientCredentials("XXXXXXXXXXXX"))
{
Endpoint = "https://westus.api.cognitive.microsoft.com/text/analytics/v2.0"
};
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@jssuthahar Thanks for the feedback. We are actively investigating and will get back to you soon.
@jssuthahar Are you located in West US? Otherwise you might want to change the region in the endpoint. Please try to start calling the API with postman https://docs.microsoft.com/en-in/azure/cognitive-services/text-analytics/how-tos/text-analytics-how-to-call-api
@Alberto-Vega-MSFT ,Yes ,I am located in India , but Our client located in west us so selected as West US region and tried in postman as well, its getting same issue
@jssuthahar I followed the steps on the links I shared with you and could not reproduce the issue. This will require some deeper analysis. Can you please file a support request @ https://aka.ms/azsupt? If you do not have access to a support plan, please reach out @Â [email protected]Â with a link to this Doc/Issue as well as your subscription ID and we can help get the support ticket opened for this issue.
@jssuthahar Hi, I have tried but can not reproduced this issue also. Please contact us as Alberto mentioned. I will close this issue here since it is not a document issue. Thank you.
Hi!
I am getting the same result when I am trying the quickstart guide code in Visual Studio. However the endpoint, my subscription key with the example JSON from the docs is working when I make a POST-request in Postman.
@zeitmeister , @YutongTie-MSFT , @Alberto-Vega-MSFT , Thanks for all your support , I have re created services now its working fine
Like @zeitmeister , I'm getting the "NotFound" error when I use the code in QuickStart as documented here: https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/quickstarts/csharp
This is just a simple call using the code published by Microsoft. Any idea what's causing it?
I figured out the issue which was me not paying attention to the instructions. The text/analytics/{version-number} must be removed from the end point. Even though the portal includes this in the end point URL, it must be removed so the end point URL needs to look like https://{my-resource-name}.cognitiveservices.azure.com/
Hope this helps the next person who runs into the same issue.
@imsam67 Thanks for the follow-up, I will check the document again to see if there anything need to be updated to make it clear. ^^
Hi folks,
I get the same error using the 7 day trail and the endpoint https://westcentralus.api.cognitive.microsoft.com/text/analytics.
Has anybody an idea why this happend? I using the quickstart for a Sentiment analysis.
@tscholze Just in case you still have issues. The TextAnalyticsClient object knows about the endpoint via the method, e.g.: client.Entities(), so if you just delete "/text/analytics" form your url, it should work.
Most helpful comment
I figured out the issue which was me not paying attention to the instructions. The
text/analytics/{version-number}must be removed from the end point. Even though the portal includes this in the end point URL, it must be removed so the end point URL needs to look likehttps://{my-resource-name}.cognitiveservices.azure.com/Hope this helps the next person who runs into the same issue.