You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Após encaminhar algumas mensagens estou recebendo o seguinte erro: messageFormat: 'wid error: invalid wid',
Verificando mais a fundo, vi que o erro começou a acontecer sozinho.
Isso aparece apenas nas mensagens do que contem no chatId um '+', exemplo: chatId: '[email protected]'
O engraçado é que o chatId é preenchido e retornado automaticamente pela Lib.
Podem ajudar na análise?
Segue um exemplo do objeto retornado:
anyMessageQueueName webhook
onAnyMessage {
id: '[email protected]_3EB02F561FDDBF2CC6B967',
viewed: false,
body: 'seria mais uma tosse alérgica? ',
type: 'chat',
subtype: null,
t: 1712188792,
from: '[email protected]',
to: '[email protected]',
ack: 0,
isNewMsg: true,
star: false,
kicNotified: false,
isFromTemplate: false,
pollInvalidated: false,
isSentCagPollCreation: false,
latestEditMsgKey: null,
latestEditSenderTimestampMs: null,
mentionedJidList: [],
groupMentions: [],
isEventCanceled: false,
eventInvalidated: false,
urlText: null,
urlNumber: null,
isVcardOverMmsDocument: false,
isForwarded: false,
hasReaction: false,
productHeaderImageRejected: false,
lastPlaybackProgress: 0,
isDynamicReplyButtonsMsg: false,
isCarouselCard: false,
parentMsgId: null,
isMdHistoryMsg: false,
stickerSentTs: 0,
isAvatar: false,
lastUpdateFromServerTs: 0,
invokedBotWid: null,
bizBotType: null,
botResponseTargetId: null,
botPluginType: null,
botPluginReferenceIndex: null,
botPluginSearchProvider: null,
botPluginSearchUrl: null,
botPluginMaybeParent: false,
botReelPluginThumbnailCdnUrl: null,
botMsgBodyType: null,
requiresDirectConnection: null,
bizContentPlaceholderType: null,
hostedBizEncStateMismatch: false,
senderOrRecipientAccountTypeHosted: false,
placeholderCreatedWhenAccountIsHosted: false,
chatId: '[email protected]',
fromMe: true,
sender: {
id: '[email protected]',
type: 'in',
isBusiness: false,
isEnterprise: false,
isSmb: false,
isContactSyncCompleted: 0,
textStatusLastUpdateTime: -1,
formattedName: 'Você',
isMe: true,
isMyContact: true,
isPSA: false,
isUser: true,
isWAContact: true,
profilePicThumbObj: null,
msgs: null
},
timestamp: 1712188792,
content: 'seria mais uma tosse alérgica? ',
isGroupMsg: false,
mediaData: {},
}
Successfully added message
DEU ERRO - sendMessage Error: wid error: invalid wid
at /usr/src/app/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:107:31
at step (/usr/src/app/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:49:23)
at Object.next (/usr/src/app/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:30:53)
at fulfilled (/usr/src/app/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:21:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
JS Stack: Error: wid error: invalid wid
at h (https://static.whatsapp.net/rsrc.php/v3/yH/r/xhAcgB6kDqz.js?_nc_x=Ij3Wp8lg5Kz:70:191)
at new a (https://static.whatsapp.net/rsrc.php/v3i94h4/yf/l/makehaste_jhash/52iUjPF8dQ7.js?_nc_x=Ij3Wp8lg5Kz:212:1448)
at k (https://static.whatsapp.net/rsrc.php/v3i94h4/yf/l/makehaste_jhash/52iUjPF8dQ7.js?_nc_x=Ij3Wp8lg5Kz:216:873)
at Object.a [as createWidFromWidLike] (https://static.whatsapp.net/rsrc.php/v3i94h4/yf/l/makehaste_jhash/52iUjPF8dQ7.js?_nc_x=Ij3Wp8lg5Kz:216:1710)
at a.from (https://static.whatsapp.net/rsrc.php/v3i94h4/yf/l/makehaste_jhash/52iUjPF8dQ7.js?_nc_x=Ij3Wp8lg5Kz:233:3575)
at a.fromString (https://static.whatsapp.net/rsrc.php/v3i94h4/yf/l/makehaste_jhash/52iUjPF8dQ7.js?_nc_x=Ij3Wp8lg5Kz:233:3399)
at /usr/src/app/node_modules/@wppconnect/wa-js/dist/wppconnect-wa.js:2:143757
at Array.map (<anonymous>)
at t.getMessageById (/usr/src/app/node_modules/@wppconnect/wa-js/dist/wppconnect-wa.js:2:143740)
at Object.e (/usr/src/app/node_modules/@wppconnect-team/wppconnect/dist/lib/wapi/wapi.js:1:29646)
at e.next (<anonymous>)
at Q (/usr/src/app/node_modules/@wppconnect-team/wppconnect/dist/lib/wapi/wapi.js:1:29305)
at a (/usr/src/app/node_modules/@wppconnect-team/wppconnect/dist/lib/wapi/wapi.js:1:29892)
at /usr/src/app/node_modules/@wppconnect-team/wppconnect/dist/lib/wapi/wapi.js:1:29951
at new Promise (<anonymous>)
at Object.Z (/usr/src/app/node_modules/@wppconnect-team/wppconnect/dist/lib/wapi/wapi.js:1:29832)
at Object.X [as getMessageById] (/usr/src/app/node_modules/@wppconnect-team/wppconnect/dist/lib/wapi/wapi.js:1:29411)
at pptr:evaluate;%2Fusr%2Fsrc%2Fapp%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:64:71
at step (pptr:evaluate;%2Fusr%2Fsrc%2Fapp%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:47:27)
at Object.next (pptr:evaluate;%2Fusr%2Fsrc%2Fapp%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:28:57)
at pptr:evaluate;%2Fusr%2Fsrc%2Fapp%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:22:75
at new Promise (<anonymous>)
at __awaiter (pptr:evaluate;%2Fusr%2Fsrc%2Fapp%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:18:16)
at pptr:evaluate;%2Fusr%2Fsrc%2Fapp%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:56:56
at pptr:evaluate;%2Fusr%2Fsrc%2Fapp%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:68:36
at new Promise (<anonymous>)
at anonymous (pptr:evaluate;%2Fusr%2Fsrc%2Fapp%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:54:14)
Function: function (_a) { return __awaiter(_this, [_a], void 0, function (_b) {
var _c, _d, _e, _f;
var messageId = _b.messageId;
return __generator(this, function (_g) {
switch (_g.label) {
case 0:
_d = (_c = JSON).parse;
_f = (_e = JSON).stringify;
return [4 /*yield*/, WAPI.getMessageById(messageId)];
case 1: return [2 /*return*/, _d.apply(_c, [_f.apply(_e, [_g.sent()])])];
}
});
}); } {
messageFormat: 'wid error: invalid wid',
messageParams: [],
taalOpcodes: [ 2 ]
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Olá, pessoal.
Versões:
Após encaminhar algumas mensagens estou recebendo o seguinte erro:
messageFormat: 'wid error: invalid wid',
Verificando mais a fundo, vi que o erro começou a acontecer sozinho.
Isso aparece apenas nas mensagens do que contem no chatId um '+', exemplo:
chatId: '[email protected]'
O engraçado é que o chatId é preenchido e retornado automaticamente pela Lib.
Podem ajudar na análise?
Segue um exemplo do objeto retornado:
Beta Was this translation helpful? Give feedback.
All reactions