Home

Microsoft Graph API Reports > lots of 504 GatewayTimeout error

%3CLINGO-SUB%20id%3D%22lingo-sub-184277%22%20slang%3D%22en-US%22%3EMicrosoft%20Graph%20API%20Reports%20%26gt%3B%20lots%20of%20504%20GatewayTimeout%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-184277%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20using%20Microsoft%20Graph%20API%20to%20download%20the%20activity%20reports%20from%20Office%20365%20(%20%3CA%20href%3D%22https%3A%2F%2Fdeveloper.microsoft.com%2Fen-us%2Fgraph%2Fdocs%2Fapi-reference%2Fbeta%2Fresources%2Freport%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdeveloper.microsoft.com%2Fen-us%2Fgraph%2Fdocs%2Fapi-reference%2Fbeta%2Fresources%2Freport%3C%2FA%3E)%20in%20a%20format%20JSON.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20I'm%20facing%20an%20issue%20%3A%20I%20get%20a%20LOT%20of%20errors%20504%20GATEWAYTIMEOUT.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20to%20try%20again%20the%20request%202%20or%203%20or%204%20or%20even%20more%20times%20to%20make%20it%20succeed%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20example%20%3A%26nbsp%3B%3C%2FP%3E%3CBLOCKQUOTE%3E%3CP%3E(http%20504%20GatewayTimeout)%20Response%20Error%20%3A%3CBR%20%2F%3EEndpoint%20%3A%20%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fbeta%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fbeta%3C%2FA%3E%3CBR%20%2F%3EApi%20Url%20%3A%20%2Freports%2FgetYammerActivityUserDetail(date%3D2018-04-16)%3F%24format%3Dapplication%2Fjson%26amp%3B%24top%3D500%3CBR%20%2F%3EMethod%20%3A%20GET%3C%2FP%3E%3CP%3E%7B%3CBR%20%2F%3E%22error%22%3A%20%7B%3CBR%20%2F%3E%22code%22%3A%20%22UnknownError%22%2C%3CBR%20%2F%3E%22message%22%3A%20%22%22%2C%3CBR%20%2F%3E%22innerError%22%3A%20%7B%3CBR%20%2F%3E%22request-id%22%3A%20%229fdc7b24-2d66-4e9f-92d5-ef281b2ecbc9%22%2C%3CBR%20%2F%3E%22date%22%3A%20%222018-04-18T15%3A09%3A06%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3CP%3EIs%20that%20a%20known%20issue%20%2C%20or%20is%20there%20a%20way%20to%20avoid%20this%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-184277%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EActivity%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAPI%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EError%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Graph%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EReports%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Etimeout%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Guillaume BLANCO-MARTIN
Occasional Contributor

Hello,

 

I'm using Microsoft Graph API to download the activity reports from Office 365 ( https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/resources/report ) in a format JSON.

 

But I'm facing an issue : I get a LOT of errors 504 GATEWAYTIMEOUT.

 

I have to try again the request 2 or 3 or 4 or even more times to make it succeed

 

For example : 

(http 504 GatewayTimeout) Response Error :
Endpoint : https://graph.microsoft.com/beta
Api Url : /reports/getYammerActivityUserDetail(date=2018-04-16)?$format=application/json&$top=500
Method : GET

{
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"request-id": "9fdc7b24-2d66-4e9f-92d5-ef281b2ecbc9",
"date": "2018-04-18T15:09:06"
}
}
}

Is that a known issue , or is there a way to avoid this ?

 

Thank you !

 

 

Related Conversations
Extentions Synchronization
Deleted in Discussions on
3 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
38 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies