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).