Hi, not a developer , so excuse my noob question h...
# 🤝help
l
Hi, I had two fucntioning chatbots on our two sites, but suddenly they both are hitting some errors, when I write to them I get; "Sorry, encountered an error" message back. If I look at the "Issues" tab within botpress I see this : "Error thrown in Execute Code card 3 days ago | Last seen 55 minutes ago About this error An error occured while running Execute Code card: Cannot read properties of undefined (reading '0') workflowId wf-f4260d44cf [handleResponse] nodeId nd-a7a48e65ed [Standard1] cardId ins-4ae04f1f33 [Find and assign the thread ID for a conversation. #1]" I just bought the "Always on" add on, to see if that solves it, but it did not. Would appreciate any help I can get here
f
Hey there Andrej and this is actually a pretty good question. Could you share the code, where that throws the error. A screenshot would be ideal.
l
thanks for an reply, here is the various screenshots
f
Thank you. Can you also add a screenshot of the code that gives the error.
l
What do you mean? When I interact with the bot and write a message it triggers the error and the bot sends the text: "sorry encountered an error" back to me
f
But what code does the error come from
l
thanks for your patience, here might be the information fro where it originates?
f
Perfect thank you. Can you go to your bot and into the workflow called HandleResponse and then find the node called Standard1. There you should find an execute code card called "Find and assign the thread ID for a conversation", then open up that code and take a screenshot of it.
l
f
Thank you
I think this 0 is the problem
Probably because threadIds is empty
l
Appreciate you identifying that, do you have a solution for fixing this? I have not made any changes to code or build anything specific myself so its weird that this has just stopped working.
f
Are you using the OpenAI Assistants template from Botpress?
l
Yessir
f
I haven't used that a lot. Maybe a @User knows if this is a common issue?
l
@User would love some help🙏
Gotta be honest feel like a total noob now, the solution was simple; Open up bot in studio and hit publish again 🥲
f
Perfect. Sometimes we just overlook the simplest things
4 Views