question

JonTereba-3410 avatar image
0 Votes"
JonTereba-3410 asked JonTereba-3410 commented

Graph API/SDK Bad Gateway 502

We use the Graph API to hit SharePoint Libraries and Lists and occasionally run into BadGateway (502) response codes from the Graph Client SDK and API. I believe that the SDK is supposed to retry if the status code is ServiceUnavailable, GatewayTimeout, or 429. This is returning a BadGateway though. If I attempt to retry, eventually it goes through. This 502 response seems to happen if the request takes longer than 40 seconds to respond. I'm looking for information on what causes this issue and any solutions that can implement to avoid this in the future. There was a period of 12 hours several weeks ago where all we got were 502 responses for any Drives or Sites Graph requests.

microsoft-graph-sites-lists
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@JonTereba-3410, you could try to test the api call in Graph explorer or postman, check if the same issue happens.

0 Votes 0 ·

Thanks for the suggestion. Yes, we tried both Postman and Graph Explorer and got the Bad Gateway (502) response in both.

0 Votes 0 ·

0 Answers