https://discord.gg/botpress logo
Before Incoming Hook Failure on Event
# 🤝help
c
I have a workflow where I send a custom event to my frontend, and await a response using 'wait for user input' and a before incoming hook. My response is being returned successfully in events as expected, however the before incoming hook is not firing for this event - instead I get an error: 'Event of Type chat: custom received: May 23, 2025, 3:56:21 PM TypeError: Cannot read properties of undefined (reading 'data') at eval (eval at (/var/task/customer_code.js:3373:13), :5:79) at evaluateFilter (/var/task/customer_code.js:3373:46) at findTrigger (/var/task/customer_code.js:3373:362) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.onTrigger (/var/task/customer_code.js:3393:6287) at async handler (/var/task/customer_code.js:45926:102374) at async /var/task/index.js:20:13734 at async handleHTTPEvent (/var/task/index.js:20:13710) at async Runtime.handler (/var/task/index.js:20:13599) May 25, 2025, 6:44:36 PM [54e33d6ea1] [dm] : Message of type text received from user_01JT730K4DXESZRWKFRY50BDS4 on chat (Conversation: conv_01JW544NKQZM9GCHJHE7B71ZQS) May 23, 2025 Interface not found { integration: 'chat', name: 'legacyTypingIndicator' } May 23, 2025 Interface not found { integration: 'chat', name: 'typingIndicator' } I should note I implemented this solution about 2 months ago, and it worked perfectly until yesterday, without any significant changes made prior to breakage. How can I get more information about what exactly is undefined, especially considering the event is being registered in botpress? https://cdn.discordapp.com/attachments/1375612935736656002/1375612935946113105/image.png?ex=6834f5e1&is=6833a461&hm=7944f79a2ba16c3afb8cc5f0fbe5ba4c32ed7529b5ce38facbec8dc090453b79& https://cdn.discordapp.com/attachments/1375612935736656002/1375612936214679643/image.png?ex=6834f5e1&is=6833a461&hm=e3ebd3e0e8e7a908aaa2af53075499748b1a6d5ae86d2d8f82b83f30b3decf80&