https://discord.gg/botpress logo
#🌎general
Title
# 🌎general
s

steep-napkin-50757

07/07/2023, 12:41 AM
anyone know how to host your bot on an aws server or something? have too many bugs when running my bot which i have no way of fixing since they dont occur in botpress studio
e

early-train-33247

07/07/2023, 1:53 AM
Hey @steep-napkin-50757, I don't think that would help you debug problems, especially since they are external
You should try adding
try {} catch() {}
instances around all of your custom codes, then you can catch the errors and handle them
s

steep-napkin-50757

07/07/2023, 1:54 AM
@early-train-33247 do you know what i can do to fix these bugs? Or if youre working on a fix? All i have gotten is “click publish again” and this is clearly not a solution
e

early-train-33247

07/07/2023, 1:55 AM
What are the bugs, please?
s

steep-napkin-50757

07/07/2023, 1:56 AM
@early-train-33247 the problem is, there is no problem with my custom codes. I have try catches set up, the bot works perfectley in the botpress studio test bot. However, as soon as I embed it on a website, it starts bugging by: repeating messages it had already sent, not following correct order, skipping modes, asking captures multiple times, etc. Basically making the bot useless.
@early-train-33247 I have tried making a new project and copying the bot over, still doesn’t work. Clicking publish on the bot multiple times and trying again, still doesn’t work. Its very demotivating as I spent a lot of time learning how to use botpress and assumed it was working since it works perfectly in the botpress studio test chat bot, and now I can’t use the chatbot because it doesn’t work as it should when i embed it. i’ve made other posts about this and gotten no significant help and its very demotivating. I hope i can get a reasonable response from you.
e

early-train-33247

07/07/2023, 2:21 AM
Hey man that must be quite annoying! We are getting some reports of bugs in the Webchat indeed.
If you could help us by pinpointing when it happens (details of the error, and the flow logic behind it), I would appreciate it and help the devs release a fix sooner!
s

steep-napkin-50757

07/07/2023, 4:49 PM
Hey. Yeah sure I can show you
Here we can see it is a normal capture card with multiple choice which asks to select your sex: masculine or femenine (bot is in spanish)
We can see that as expected, when testing the chatbot, it runs smooth as could be, strolling through the capture cards (its a pretty basic feature after all)
Once we go test it through the web chat however, it decides it needs to repeat the question mutliple times, then it does the same with age, then it goes to ask if they are signle or married, and then it decides it should ask the age a third time
Clearly the bot is not programmed to do this as it never occurs in the botpress studio test, so please let me know if there is something i can do to fix this, i really need this bot sooner rather than later...
@early-train-33247
@early-train-33247 did you get a chance to look at this>?
e

early-train-33247

07/08/2023, 12:41 AM
Hey @steep-napkin-50757, I am seeing it! That's strange behavior indeed
Could you send a screenshot of the worfklow, so I see how the logic happens
And also, the gender question should be a SingleChoice
s

steep-napkin-50757

07/08/2023, 12:42 AM
It is kind of a big workflow, whats the best way to send you this?
e

early-train-33247

07/08/2023, 12:42 AM
because the user can choose only a Single Choice out of many. If they could choose many genders, then it would be an Multiple Choice
this part
s

steep-napkin-50757

07/08/2023, 12:43 AM
Do you think that could be causing the issue? still seems weird as it doesnt happen in the testing in studio
e

early-train-33247

07/08/2023, 12:43 AM
and the sexo variable should be an string, or an Entity
Probably not, but its something to fix
You should have one node for each question, so it's easier to manage when users type wrong values
s

steep-napkin-50757

07/08/2023, 12:45 AM
one node for each question makes it pretty long, as you can see it is a lot of questions, is this the best way?
e

early-train-33247

07/08/2023, 12:45 AM
It is a best practice
You can keep them close together
That could solve the problem to be honest, many captures in a row cause issues sometimes
s

steep-napkin-50757

07/08/2023, 12:47 AM
this is the worfklow, not sure if you can read anything thesre
however, look, this is literally the first node, it is three basic questions, phone email name, and it gets stuck at the end
e

early-train-33247

07/08/2023, 12:52 AM
I see. Could you please try and deploy your bot on another channel like Telegram, and see if the issue happens there as well? Then we will know for sure if it is a webchat bug, or if there is a problem with your flow logic
2 Views