Forum Discussion
Tatvasoft_Test
Oct 06, 2020Copper Contributor
Microsoft Graph API - Lots of 504 GATEWAY TIMEOUT ERROR
Hello,
I am using Microsoft Graph api to fetch and delete emails from Outlook mailboxes.
To be more specific, there is a service which runs every 5 minutes to fetch 100 emails, their attachments and then delete them from 6 different mailboxes. But I get a lot of 504 GATEWAYTIMEOUT errors.
Is there any way to fix it?
For example:
Status Code : GatewayTimeout. Error response
{
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"date": "2020-10-06T06:10:37",
"request-id": "e7ac5888-4d38-407a-95af-496de867653a",
"client-request-id": "e7ac5888-4d38-407a-95af-496de867653a"
}
}
}
Any help immediately would be appreciable.
Thank you !
- Sounds like throttling to me. Possible your query is quite large, having it run every five minutes could also lead to issues on the long term.