WhatsApp not connecting to bot

I have connected a WhatsApp number successfully from Meta. However it does not seem to have connection to the bot. when I type the input it does not start the bot as expected. I must be missing something, pls help.
57 Replies
Claudio Balbino
Claudio Balbino12mo ago
There appears to be a problem with the WhatsApp Cloud API integration I'm also having a problem with flow created today and with old self-hosted Typebot with versions 2.24.1 and 2.25.1 I have already generated a new permanent token and created a new connection in flow but without success Is @Baptiste aware of this problem?
No description
Claudio Balbino
Claudio Balbino12mo ago
this log was generated when I sent the word that should start the bot
Claudio Balbino
Claudio Balbino12mo ago
Yesterday I noticed that the bot session integrated with Cloud API is not being closed after the specified time
Apploader
ApploaderOP12mo ago
Ok, this should be escalated as a bug then
imoclub
imoclub12mo ago
UP for this, same case
imoclub
imoclub12mo ago
No description
Baptiste
Baptiste12mo ago
When did this problem occur? It happens when you upgrade to v2.25.0?
Claudio Balbino
Claudio Balbino12mo ago
hi @Baptiste , In my case, I initially observed it on Typebot with 2.25.0... I updated it to 2.25.1 but the problem persists I'm also having a problem with 2.24.0
Baptiste
Baptiste12mo ago
Ok I can reproduce the issue.
imoclub
imoclub12mo ago
it happens when i upgrade to Version: 2.25.1, its safe to downgrade version with docker?
Baptiste
Baptiste12mo ago
No it is not safe as potential database migrations were applied. I'm working on a fix
imoclub
imoclub12mo ago
oh ok thanks baptiste 🙏
Baptiste
Baptiste12mo ago
In fact, I could not reproduce... Can you provide a bot example that has this issue? And exactly how you are testing out? I tried duplicating the lead gen template, I plugged my WA number, enabled it and it worked
jeferson.silva.
jeferson.silva.12mo ago
I can send you my flow, is this in Brazilian Portuguese a problem? @Baptiste
jeferson.silva.
jeferson.silva.12mo ago
I don't know if there's something specific, but I'm inside a block that I can't exit, I try to type, exit, close, stop and it still doesn't reset the person. Would there be any way to end the session with a number?
Baptiste
Baptiste12mo ago
Ok I'm pushing a potential fix now
imoclub
imoclub12mo ago
i already reset the whatsapp integration and new registered webhook from typebot but the error logs still show up, i tested on this simple bot example
LaRocca
LaRocca12mo ago
My whatsapp integrations stopped as well. How do you check those logs? Is this inside of the container?
jeferson.silva.
jeferson.silva.12mo ago
hi, hi, any news?
Claudio Balbino
Claudio Balbino12mo ago
This has become a big problem... I noticed that if the user does not finish the flow, even after the time set to end the session has expired, the user number no longer calls the bot @Baptiste will the fix for this problem be implemented in the next version?
jeferson.silva.
jeferson.silva.12mo ago
I actually have 2 numbers where this happened and I can't talk anymore. @Baptiste @Baptiste hi, hi, any news??
jpgbernardes
jpgbernardes12mo ago
I downgraded to version 2.24.0 and it worked! I am waiting the solution! Tks @Baptiste for this amazing app!
Rodney
Rodney12mo ago
Hi, I reported as an issue at github, see the log there... https://github.com/baptisteArno/typebot.io/issues/1517
GitHub
Shared whatsapp webhook is not working · Issue #1517 · baptisteArno...
When I share a bot to listen whatsapp messages looks like its not working. Seems like webhook is "in trouble" to deal with requests received from Meta, based in log bellow Follow bellow t...
Rodney
Rodney12mo ago
@Baptiste If you need anything else just ask.
Baptiste
Baptiste12mo ago
Releasing v2.25.2 now (should be available in max 30 min)
imoclub
imoclub12mo ago
Wow good news thanks baptiste
Baptiste
Baptiste12mo ago
Let me know if that fixes the issue
LaRocca
LaRocca12mo ago
unfortunatelly it does not worked for me... I tried even the Next release and the error persist 😦 When I sent a message on whatsapp, the log of the viewer just shows me this: Is currently replying, skipping...
Baptiste
Baptiste12mo ago
Ok so it sounds like your session is stuck on a "reply" state. Let me push something that will unlock your situation
Rodney
Rodney12mo ago
I did a really simple test and it seems its working...
Baptiste
Baptiste12mo ago
Great keep us posted
Rodney
Rodney12mo ago
@Baptiste Thank you man!
Baptiste
Baptiste12mo ago
Ok I'm deploying a new next version (wait for the pipeline to be over: https://github.com/baptisteArno/typebot.io/actions/runs/9174747071)
LaRocca
LaRocca12mo ago
Thank you, I will check after the pipeline runs.
imoclub
imoclub12mo ago
Confirm new error appears, but my WA bot works on the number that never get the response before
prisma:error
Invalid `prisma.chatSession.createMany()` invocation:


Unique constraint failed on the fields: (`id`)
Something went wrong PrismaClientKnownRequestError:
Invalid `prisma.chatSession.createMany()` invocation:


Unique constraint failed on the fields: (`id`)
at In.handleRequestError (/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:122:6854)
... 8 lines matching cause stack trace ...
at async callRecursive (file:///app/node_modules/.pnpm/@[email protected]/node_modules/@trpc/server/dist/index.mjs:456:32) {
code: 'INTERNAL_SERVER_ERROR',
name: 'TRPCError',
[cause]: PrismaClientKnownRequestError:
Invalid `prisma.chatSession.createMany()` invocation:


Unique constraint failed on the fields: (`id`)
at In.handleRequestError (/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:122:6854)
at In.handleAndLogRequestError (/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:122:6188)
at In.request (/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:122:5896)
prisma:error
Invalid `prisma.chatSession.createMany()` invocation:


Unique constraint failed on the fields: (`id`)
Something went wrong PrismaClientKnownRequestError:
Invalid `prisma.chatSession.createMany()` invocation:


Unique constraint failed on the fields: (`id`)
at In.handleRequestError (/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:122:6854)
... 8 lines matching cause stack trace ...
at async callRecursive (file:///app/node_modules/.pnpm/@[email protected]/node_modules/@trpc/server/dist/index.mjs:456:32) {
code: 'INTERNAL_SERVER_ERROR',
name: 'TRPCError',
[cause]: PrismaClientKnownRequestError:
Invalid `prisma.chatSession.createMany()` invocation:


Unique constraint failed on the fields: (`id`)
at In.handleRequestError (/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:122:6854)
at In.handleAndLogRequestError (/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:122:6188)
at In.request (/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:122:5896)
Baptiste
Baptiste12mo ago
Is this just a one time error or does it always appear?
LaRocca
LaRocca12mo ago
it worked. Thank you very much Baptiste. You are the guy.
imoclub
imoclub12mo ago
Yeah just once i already test many conversation and no problem.. so should i pull this new next version?
Baptiste
Baptiste12mo ago
Don't worry about that error then if you can't reproduce it
imoclub
imoclub12mo ago
Ok nice thanks baptiste youre awesome 🔥
LaRocca
LaRocca12mo ago
Ok, I am facing a strange error here: I was using the realease Next. Everything was working fine. Then I made a simple change in the flow and when I clicked the publish button, it said that there is nothing to publish. And the button still in Publish state. But the changes appeared on the whatsapp. After that, the flow stopped to send images to whatsapp. Then I try to go back to the Latest release. The whatsapp is still working, but the flow stop in the images.
Claudio Balbino
Claudio Balbino12mo ago
this solved it... thank you very much
LaRocca
LaRocca12mo ago
Forget about this guys, I just deleted my files by mistake LOL
jeferson.silva.
jeferson.silva.12mo ago
Hello beauty? So, I updated the typebot, but I see that with my contacts who already had conversations, it doesn't respond. It happens like this, I sent a message to the bot on WhatsApp, I waited 3 hours with the flow without finishing. When I went to call the bot again it didn't respond anymore. Do you know what it could be? @Baptiste
Baptiste
Baptiste12mo ago
Can you provide the server logs? There should be a clear error there. If you are self-hosting it with docker. Type this command in your terminal:
docker-compose logs
docker-compose logs
Paste all the logs here so that we can help you properly!
jeferson.silva.
jeferson.silva.12mo ago
The logs don't show anything, I'm using portainer, and accessing each location only shows the normal log. no mistakes
Anderson Soares
Anderson Soares12mo ago
Same here, i've been having this issue for days, even that the session is configure to 1 hour i'm using the image avaiable on docker hub
jeferson.silva.
jeferson.silva.12mo ago
I don't know what else to do. it's hard. hahahaha
Anderson Soares
Anderson Soares12mo ago
I tried deleting the number and configuring it, but to no avail.
jeferson.silva.
jeferson.silva.12mo ago
yes
Anderson Soares
Anderson Soares12mo ago
Typebot Viewer
No description
Anderson Soares
Anderson Soares12mo ago
Do you have any idea what could be causing this? @Baptiste
Baptiste
Baptiste12mo ago
You need to pull the next version, it's fixed here
Anderson Soares
Anderson Soares12mo ago
it works 🙂 thank's

Did you find this page helpful?