Google Play Developer Reporting API . vitals . errors . reports.search
Environment details
- OS type and version:
- Python version:
3.6.8 - pip version:
21.2.3 google-api-python-clientversion:2.44.0
Code example
vitals_report = sqladmin.vitals().errors().reports().search(
parent="apps/{com.example.app}",
filter="errorIssueType=CRASH",
interval_endTime_day=12,
interval_endTime_hours=0,
interval_endTime_minutes=0,
interval_endTime_month=4,
interval_endTime_nanos=0,
interval_endTime_seconds=0,
interval_endTime_year=2022,
interval_startTime_day=11,
interval_startTime_hours=0,
interval_startTime_minutes=0,
interval_startTime_month=4,
interval_startTime_nanos=0,
interval_startTime_seconds=0,
interval_startTime_year=2022
).execute()
Stack trace
googleapiclient.errors.HttpError: <HttpError 500 when requesting https://playdeveloperreporting.googleapis.com/v1alpha1/apps/com.kwai.video/errorReports:search?filter=errorIssueType%3DCRASH+AND+versionCode%3D525202&interval.endTime.day=12&interval.endTime.hours=0&interval.endTime.minutes=0&interval.endTime.month=4&interval.endTime.nanos=0&interval.endTime.seconds=0&interval.endTime.year=2022&interval.startTime.day=11&interval.startTime.hours=0&interval.startTime.minutes=0&interval.startTime.month=4&interval.startTime.nanos=0&interval.startTime.seconds=0&interval.startTime.year=2022&alt=json returned "Internal error encountered.". Details: "Internal error encountered.">
I have completely referred to the corresponding API documents to fill in https://googleapis.github.io/google-api-python-client/docs/dyn/playdeveloperreporting_v1alpha1.vitals.errors.reports.html#search My question is:
Are there any errors in my parameters and how to correct them
Thanks!
Hi @newFunL, Thanks for reporting this issue. I've created an internal ticket for the API team. Googlers see b/229362343.
I managed to make this work by using "UTC" as the timezone (which interestingly contradicts the documentation that it only supports America/Los_Angeles as timezone).
data = service.vitals().errors().reports().search(parent="apps/" + args.package_name,
pageSize=1000,
filter=args.filter,
interval_endTime_day=end_time.day,
interval_endTime_hours=end_time.hour,
interval_endTime_month=end_time.month,
interval_endTime_year=end_time.year,
interval_endTime_timeZone_id="UTC",
interval_startTime_day=start_time.day,
interval_startTime_hours=start_time.hour,
interval_startTime_month=start_time.month,
interval_startTime_year=start_time.year,
interval_startTime_timeZone_id="UTC").execute()
Hi @azadgandomi thanks for finding this, you are right that this should have been documented as UTC. We will get the documentation fixed.
Almost a year later and when I call the API, it only accepts America/Los_Angeles. Sometimes the endpoint returns a 500 HTTP Error which has no further explanation. More information returned in the response would be nice.
Emergency problem
How do code run to auto change a name and profile of particular name almost like a hit to drop that board.
Currently happening re altering executive command overridden name withdrawn peripherals
Sample my name UK Bhinbahadur
UK Bhinbahadur
On Wed, 08 Feb 2023, 11:31 kdunggttn, @.***> wrote:
Almost a year later and when I call the API, it only accepts America/Los_Angeles. Sometimes the endpoint returns a 500 HTTP Error which has no further explanation. More information returned in the response would be nice.
— Reply to this email directly, view it on GitHub https://github.com/googleapis/google-api-python-client/issues/1763#issuecomment-1422296264, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEXF3X6RZYQ6VKWSK3PP6U3WWNRX7ANCNFSM5TP5N2UQ . You are receiving this because you are subscribed to this thread.Message ID: @.*** com>