InboxSDK returns wrong messageId when a mail is forwarded [Intermittent issue]

81 views
Skip to first unread message

Sachidanand Sachin

unread,
Feb 8, 2023, 8:38:32 AM2/8/23
to InboxSDK
Hi Team, 

Please find the below link to get the issue details. 

Regards,

Sachidanand Sachin

unread,
Feb 13, 2023, 1:39:21 AM2/13/23
to InboxSDK
Hi Team, 

Please find the detailed description of the above issue.

Description:
When we forward an email and get the message Id using getMessageId() method of inboxSDK , if we try to get the email message using google api with the help of returned messageId , it throws 'MessageNotFound(404)' error . After refresh it returns the correct messageId and we get the email message.

Steps to reproduce the behavior:

  1. Open gmail and forward the mail (to self mail for instance) and get the messageId using inboxSDK code as shown in below.
    sdk.Compose.registerComposeViewHandler(function (composeView) {
    composeView.addButton({
    title: "Send Mail",
    iconUrl: chrome.extension.getURL("icon.png"),
    iconClass: "class",
    type: "SEND_ACTION",
    onClick: function () {
    composeView.on("sent", function (sentMsg) {
    return sentMsg.getMessageID().then(function (sentMsgId) {

  2. Use google api (https://developers.google.com/gmail/api/reference/rest/v1/users.messages/get) to get the email message with the messageId got above.

Please do it 4-5 times if unable to reproduce. I was able to reproduce 1/3 times.

Expected behavior
We should be able to get the email message based on messageId.

NOTE: It's an intermittent issue.




Regards,

Sachidanand Sachin

Reply all
Reply to author
Forward
0 new messages