google-apigoogle-admin-sdkhttp-status-code-500google-directory-api

googleapi: Error 500: Internal error encountered., backendError when calling Admin SDK


This is strange we have started receiving too many per day (nearly 300-500 times)

googleapi: Error 500: Internal error encountered., backendError

while calling Admin SDK Directory API. https://developers.google.com/admin-sdk/directory

Google chat support for API is removed and Facing issue with how to address the problem. Our rate limit and query calls are way in the limits. We query Admin SDK as a cronjob schedule.

  1. Is there a way we can debug 500 errors for AdminSDK

  2. Is there any information regarding which deployment Region of Google is more capable to handle load?

No error on console Logs error


Solution

  • Contact Workspace Support or File a Bug

    As DalmTo pointed out, 500 errors are usually out of your control. Especially in this case since you are calling Google's servers.

    The best option to debug these errors is probably contacting support directly. You can find the corresponding contact information for your Workspace account ⁠on this page.

    https://support.google.com/a/answer/1047213?hl=en

    If you are able to regularly reproduce this and you think its a bug, fill out the template here:

    https://issuetracker.google.com/issues/new?component=191635&template=824102

    Ensure to include your code, complete reproduction steps, some evidence/statistics of the failures, and any other information you can give.