503 Error coming up from Microsoft Graph API

Usman Ahmad 0 Reputation points
2023-03-03T16:56:52.0466667+00:00

I am getting http status code 503 on a request to graph API. The request I am making is as follows:

https://graph.microsoft.com/beta/deviceManagement/managedDevices/device-id?$select=physicalMemoryInBytes,ethernetMacAddress,userId,usersLoggedOn,hardwareInformation&$expand=detectedApps

Here device-id was replaced by the device id of the device. The response I am getting is the follows:


"error": {
        "code": "DQCancelledOnRequestTimeout",
        "innerError": {
          "client-request-id": "2d6f7c74-0648-41b7-bc14-3d05bb7833f3",
          "date": "2023-03-02T20:02:27",
          "request-id": "2d6f7c74-0648-41b7-bc14-3d05bb7833f3"
        },
        "message": "{\r\n  \"_version\": 3,\r\n  \"Message\": \"An error has occurred - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: 2d6f7c74-0648-41b7-bc14-3d05bb7833f3 - Url: https://fef.msub02.manage.microsoft.com/DeviceFE/StatelessDeviceFEService/deviceManagement/managedDevices('<device-id>')?api-version=5022-11-15&$select=physicalMemoryInBytes%2cethernetMacAddress%2cuserId%2cusersLoggedOn%2chardwareInformation&$expand=detectedApps\",\r\n  \"CustomApiErrorPhrase\": \"\",\r\n  \"RetryAfter\": null,\r\n  \"ErrorSourceService\": \"\",\r\n  \"HttpHeaders\": \"{}\"\r\n}"
      }

Here device id is replace by <device-id>.

I have read the documentation and it says to wait some time specified by the Retry-After header and then try sending the request again, but in this case the RetryAfter seems to be null (from the message above).

Microsoft Security Intune Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Crystal-MSFT 53,981 Reputation points Microsoft External Staff
    2023-03-06T01:52:58.0166667+00:00

    @Usman Ahmad, Thanks for posting in Q&A.

    Based on my test, we can use the following format to get the managed device information:

    https://graph.microsoft.com/beta/deviceManagement/manageddevices('<device id>')?$select=physicalMemoryInBytes,ethernetMacAddress,userId,usersLoggedOn,hardwareInformation&$expand=detectedApps

    User's image

    Hope it can help.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.