简体   繁体   中英

Google Report list api is throwing 500

Google Admin report list api suddenly started throwing 500. Have tried from api as well as from SDK and both are throwing GoogleJsonResponseException. after debugging found that if we don't specify eventName filter then it is working but after adding evenName filter (ex.download or edit) it throws 500. API: https://admin.googleapis.com/admin/reports/v1/activity/users/all

Try above api from google itself via https://developers.google.com/admin-sdk/reports/reference/rest/v1/activities/list

and specify any eventName(view,edit,download,share)

below is SDK code

Reports.Activities.List list = Reports.activities().list(caller, activityName).setOauthToken("accesstoken").setMaxResults("1000") .setStartTime(startTime).setStartTime("endTime").setEventName("edit"); 
Activities result = list.execute(); 

You should have posted the error message here, but usually Error 500 most of the time refer to a backend error and google remedy is to implement exponential backoff.

From your post is quite unclear is that for a specific user or all of them, but the error message from Google are quite reasonable and will give you a good guidance, so expand that JSON resonse GoogleJsonResponseException

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM