I am working with
Microsoft Graph API
I have a requirement to get emails with different filters and with the specified time range. I am using Odata query for the filter, a couple of examples are:
https://graph.microsoft.com/v1.0/users/<Email-id>/<folder-id>/messages?$search="received>2019-07-02T07:16:39.094Z AND received<2019-07-02T07:17:39.095Z AND isRead=false"
https://graph.microsoft.com/v1.0/users/<Email-id>/<folder-id>/messages?$search="received>2019-07-02T07:16:39.094Z AND received<2019-07-02T07:17:39.095Z AND isRead=false AND body:testbody"
Till the morning it was working fine, but now I am facing the 504 Gateway timeout issue
{
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"request-id": "f3ecaf3d-e9c2-4b99-8a01-224de9852d57",
"date": "2019-07-02T11:38:20"
}
}
After spending some time I observed there is an issue with below filter with the greater sign.
received>2019-07-02T07:16:39.094Z
If I remove this, then this will work fine. It works fine with the less sign as well.
received<2019-07-02T07:17:39.095Z
Any idea team why it stops working?