Gmail API history.list is returning messageId's that return 404 when message.get is called.
I call history.list with "INBOX" label and "history/messagesAdded" fields. I then call message.get with each of the messageId's returned. Some of them return valid messages, others return the following exception:
Google_Service_Exception
{
"error": {
"errors": [
{
"domain": "global",
"reason": "notFound",
"message": "Not Found"
}
],
"code": 404,
"message": "Not Found"
}
}
What would cause this? It seems like we just retrieved the messageId there isn't enough time for them to now be permanently deleted.
history/messagesDeletedandhistory/labelsRemovedyou will probably see that these messages have been removed. - Thollehistory/messagesAddedandhistory/messagesDeletedfor the same call? - KSzetohistoryIdgiven up until now, so if the message has been added to the inbox and deleted sincehistoryId, the samemessageIdwill appear in bothhistory/messagesAddedandhistory/messagesDeleted. - Tholle