question

ApoenadePalmerHerrero-6413 avatar image
1 Vote"
ApoenadePalmerHerrero-6413 asked KonradDysput-4530 commented

UWP - Get error reporting data - API error

I am trying consume the API described in this documentation.

Unfortunately, when I make a call, I get a 500 error response, this message: Object reference not set to an instance of an object

Call Example:

curl --request GET "https://manage.devcenter.microsoft.com/v1.0/my/analytics/failurehits?applicationId=<<ApplicationId>>&startDate=09/01/2020&endDate=09/02/2020&top=10&skip=0" --header "Authorization: Bearer <<Token>>"

I tried to change the date FORMAT and including the parameter "aggregationLevel", but nothing worked.

The ONLY way I can get a non error message is by completely removing the "startDate" and "endDate" parameter. BUT it does not give me the expected output.

 {
     "Value": [
         {
             "applicationId": "<<ApplicationId>>",
             "applicationName": "<<ApplicationName>>",
             "deviceCount": 1000.00000000001,
             "eventCount": 12345.0
         }
     ],
     "TotalCount": 1
 }

I can see data in the Partner Center, health monitor. Any idea?

Thanks.





partner-center-general
· 9
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

https://docs.microsoft.com/en-us/answers/questions/161062/cannot-download-cab-from-error-reporting-api.html

Hey I think I have the same issue here. It looks like failureDetails doesn't work correctly - failureDetails api doesn't return at all anything for my crashes that I downloaded in last hour.


@RoyLi-MSFT
It looks like more people have this issue :(

1 Vote 1 ·

Here is a code sample that shows the normal process of calling this API. Have you tried this to confirm if the API could get the correct data that you want?


0 Votes 0 ·

I am using this code to test this.

0 Votes 0 ·

I mean.. I am using this code to test this. The curl was just an easy small way to get to the error.

0 Votes 0 ·

@RoyLi-MSFT if you are asking if the api can get the data I expect, I am guessing it can, because the Partner Center health monitor has all the data I want and the eventCount field that the API is returning, is increasing on every call..

0 Votes 0 ·

I found a way to include the missing field I needed from the result call, I am just adding them to the groupby parameter and them they appear.

curl --request GET "https://manage.devcenter.microsoft.com/v1.0/my/analytics/failurehits?applicationId=<<ApplicationId>>&groupby=failureHash" --header "Authorization: Bearer <<Token>>"

Unfortunately providing the startDate + endDate together still causes errors, the same way that the pagination fields top + skip are also causing problems.

Also the @nextpage field does not appear in the result json, event with my result being larger then the max result supported.

0 Votes 0 ·
RoyLi-MSFT avatar image RoyLi-MSFT ApoenadePalmerHerrero-6413 ·

It's good news to hear that there is a way to the report you want. I'm still trying to contact the owner of this API to check if it's unexpected behavior.

1 Vote 1 ·

0 Answers