https://discord.gg/botpress logo
I keep getting timeout errors from my bot
# 🤝help
g
Hi guys, So ive been heavily testing my bot today (webchat), and now it will barely respond, it takes ages and especially triggers. i keep getting this in my logs:
Copy code
Error sending outgoing message {
  integration: 'webchat',
  messageType: 'text',
  payload: '{"type":"text","text":"Applying settings..."}',
  error: TimeoutError: Sending message took more than 10s
      at Timeout._onTimeout (/var/task/customer_code.js:159:8932)
      at listOnTimeout (node:internal/timers:581:17)
      at process.processTimers (node:internal/timers:519:7)
}
is any one else experiencing this latency in their bots today? https://cdn.discordapp.com/attachments/1437814309903143012/1437814310192807936/Screenshot_2025-11-11_at_14.40.08.png?ex=69149c6c&is=69134aec&hm=1c3646e2fcd976285ab7324c50a2e547b70b6b980533aa59711bce8eab4b821e&
e
same error
in the emulator works fine but in webchat and integrations the bot does not respond
g
At least its not just me, and yeah, same issue @loud-crowd-60573
l
when you refresh your page do the messages appear? @gentle-policeman-89141
e
also, in the conversations tab, the messages seem to go all at once after some time, but it does not appear for the user https://cdn.discordapp.com/attachments/1437814309903143012/1437816818365370448/image.png?ex=69149ec2&is=69134d42&hm=8c82bf2617a0210b2fadab81d8bf75600cdd89758c985892faeeea81be42f13a&
g
Ive refreshed a number of times (+ hard refresh w/out cache) and still persisting, then sometimes a flush of messages come through, Its not as snappy quick as normal, sometimes i feel like its back then it takes a while for the next message 😆
e
since i use the whatsapp integration, the whatsapp api does not receive this much messages at the same time and nothing appears in the conversation
l
Can you drop a quick screenshot of your workflow?
Also can you try with a very simple workflow to see if it is a network issue? @gentle-policeman-89141
e
I think it would not be a individual network issue since its not just his bot with the problem
l
Oh my goodness 😅
l
Thats impressive Philip
e
Same as his, worked fine for 2 months now
l
Very odd
e
the flow does not pass a single choice card
l
So essentially in webchat, messages are not being sent. Correct? And flow gets stuck on choice cards?
g
more that its just being quite slow
e
In webchat and integrations the bot receives a timeout error, and then sends all the response messages at once after some time
g
ahah thanks my friend! its just one of them
but yeah being kinda slow, just not as snappy as usual
but i do have a big bot, although ive tested it every day for a while and its been fine, ill deffo look at my state space
but for now probs best to give it an hour see if it fixes itself
e
In webchat the messages all appear after some time, but in my case that is the whastapp integration, wpp api does not allow multiple messages like this and so the bot does not respond at all
i have a big one too with a lot of workflows, and it worked normally for quite some time. Now both of us with the same problem, definitely not a individual thing
😢
g
I hope its not because our bots are too big, the refactoring will hurt my brain cells
e
I will do awful things to myself if i need to refactor my bot
g
honestly man, I literally just thought it was back to normal then it started slowing down again 🙁 I must be getting pranked or something ahah
ill take an hour break and see what its like when im back
seems to be getting better as before it just wasnt messaging me
l
Will be contacting the team and will get back with an update when I can 🫡
e
thanks ross
g
it seems to be getting abit better, but for a good 45 mins it was unuseable
thanks for the help ross mate
l
Things should be working smoothly as of now @gentle-policeman-89141 and @early-honey-51885 can you confirm?
g
still taking abit of time on the single choice card button click
the rest (trigger, messages) coming ino ok
same as before
yeah, still waiting on the response from that button click
ill be back shortly anyway i need a break, thanks for the help again @loud-crowd-60573 and ill let you know when im back how it is
c
This is the biggest wf I’ve seen lmao
What type of bot is that?
g
still not working too good @User
a long thing
basically i dont really use too much autonomous nodes with it but i make quite a few gemini calls from REST which is why its so massive
l
The choice cards?
e
i tought mine was big... always a bigger fish i guess
cant even imagine how slow it is to work on
for me its 100% already
l
Youre all good?
e
yes
even since 1pm
l
Exactly what is not working well @gentle-policeman-89141 I will forward your message
g
i keep getting this error:
Copy code
Error sending outgoing message {
  integration: 'webchat',
  messageType: 'choice',
  payload: '{"type":"choice","text":"Select your type, this will apply to all future operations until you change it.","options":[{"label":"A","value":"A"},{"label":"F","value":"F"}]}',
  error: TimeoutError: Sending message took more than 10s
      at Timeout._onTimeout (/var/task/customer_code.js:159:8932)
      at listOnTimeout (node:internal/timers:581:17)
      at process.processTimers (node:internal/timers:519:7)
}
sometimes i message, then no typing bubble appears, then sometimes it appears indefinitely, i then have to reload page, and slowly some messages come through but it starts from start
bro i couldnt even fit the whole wf into the screen ahah
Thanks man, sorry for the headache.
l
Can you show me the node/card that causes that error?
Just suddenly started working?? 😆
g
I swear 😆 it is kinda random lol
was working earlier after we first spoke then when i tried to show someone it stopped 😠
4 Views