Internal Server and Bad Gateway Error for Defender APIs

Ravi Singh 0 Reputation points
2025-07-15T08:47:19.9166667+00:00

Hi Team,

For one of our Customer, we are trying to pull Vulnerability using https://learn.microsoft.com/en-us/defender-endpoint/api/get-assessment-software-vulnerabilities?view=o365-worldwide and assets using https://learn.microsoft.com/en-us/defender-endpoint/api/get-machines.

Often we are getting

Response for Internal Server Error - 

{"error":{"code":"InternalServerError","message":"Internal Server Error","target":"|7cf888a7-492ad658467ae2d1.1."}}

Response for Gateway Timeout - 

<html> <head><title>502 Bad Gateway</title></head> <body> <center><h1>502 Bad Gateway</h1></center> <hr><center>nginx</center> </body>

Any suggestion for the cause and we can do something to solve.

Thanks

Microsoft Security | Microsoft Defender | Other

Your answer

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