Azure-sdk-for-net: The requested path does not exist

Created on 9 Nov 2020  路  2Comments  路  Source: Azure/azure-sdk-for-net

Hello,

I receive following error message. I find no sample code or good documentation. so maybe someone knows how to correct my shortened code.

Microsoft.Azure.ApplicationInsights.Query.Models.ErrorResponse
Code=PathNotFoundError, Message=The requested path does not exist

Source:

                private GetMetrics()
        {
            var appId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
            var apiKey = "xxxxxxxxxxxxxxxxuxxxxxxxxxxxxxxxxxxxxxx";

            var baseUrl = new Uri("https://api.applicationinsights.io");
            // var baseUrl = new Uri("https://api.applicationinsights.io/");
            // var baseUrl = new Uri("https://api.applicationinsights.io/v1");
            // var baseUrl = new Uri("https://api.applicationinsights.io/v1/");

            var creds = new ApiKeyClientCredentials(apiKey);

            using (var client = new ApplicationInsightsDataClient(baseUrl, creds))
            {
                **_var results = await client.Events.GetExceptionEventsAsync(appId);    // -> PathNotFoundError-Exception_**

                                // ...
                                // work with results
                                // ...
            }
        }

THX a lot

Client Monitor - ApplicationInsights Service Attention customer-reported needs-team-attention question

All 2 comments

Thank you for your feedback. Tagging and routing to the team best able to assist.

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azmonapplicationinsights.

Was this page helpful?
0 / 5 - 0 ratings