-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Description
Welcome!
- Yes, I have searched for similar issues on GitHub and found none.
What did you do?
EvolutionApi
Version: 2.3.7
Ao criar instancia de whatsapp api cloud ocorre um erro abaixo, demais tipos de instancia funcionam corretamente.
Error : Invalid a.integrationSession.update() invocation in /evolution/dist/main.js:174:11489 171 ));let t="";s.bold&&(t+="*"),s.italic&&(t+="_"),s.underline&&(t+="~");let o=${t}${e}${t.split("").reverse().join("")};return s.url&&(o=s.children[0]?.text?[${o}] 172 (${s.url}):${s.url}),o}async processMessages(s,e,t,o,i,n,r,a){let c=(l,u)=>{if(!l)return null;for(let m of l)if(m.lastBubbleBlockId===u)return m.wait?.secondsToWaitFor;return null};for(let l of o){if(l.type==="text"){let m="";for(let d of l.content.richText){for(let h of d.children)m+=r(h);m+= 173 }m=m.replace(/\*\*/g,"").replace(/__/,"").replace(/~~/,"").replace(/\n$/,""),m=m.replace(/\n$/,""),m.includes("[list]")?await this.processListMessage(s,m,e.remoteJid):m.includes("[buttons]")?await this.processButtonMessage(s,m,e.remoteJid):await this.sendMessageWhatsApp(s,e.remoteJid,m,t,!0),q("/message/sendText")}l.type==="image"&&(await s.mediaMessage({number:e.remoteJid,delay:t?.delayMessage||1e3,mediatype:"image",media:l.content.url},null,!1),q("/message/sendMedia")),l.type==="video"&&(await s.mediaMessage({number:e.remoteJid,delay:t?.delayMessage||1e3,mediatype:"video",media:l.content.url},null,!1),q("/message/sendMedia")),l.type==="audio"&&(await s.audioWhatsapp({number:e.remoteJid,delay:t?.delayMessage||1e3,encoding:!0,audio:l.content.url},!1),q("/message/sendWhatsAppAudio"));let u=c(n,l.id);u&&await new Promise(m=>setTimeout(m,u*1e3))}if(i){if(i.type==="choice input"){let l="",u=i.items;for(let m of u)l+=\u25B6\uFE0F ${m.content} → 174 ;l=l.replace(/\n$/,""),l.includes("[list]")?await this.processListMessage(s,l,e.remoteJid):l.includes("[buttons]")?await this.processButtonMessage(s,l,e.remoteJid):await this.sendMessageWhatsApp(s,e.remoteJid,l,t,!0),q("/message/sendText")}await a.integrationSession.update( Foreign key constraint violated on the constraint: Setting_instanceId_fkey`
What did you expect?
instancia criada
What did you observe instead of what you expected?
Instancia conectada a whatsapp cloud api
Screenshots/Videos
Which version of the API are you using?
Version: 2.3.7
What is your environment?
Windows
Other environment specifications
No response
If applicable, paste the log output
No response
Additional Notes
No response
