https://discord.gg/botpress logo
Execution Timeouts on Custom Events (Send Custom E...
# 🤝help
c
This morning I'm seeing a bunch of errors related to timeouts on execution cards for custom events - not the same custom event each time. This has worked reliably for more than 6 months - and now suddenly it's causing my system which is now in production to fail . No changes were made to the payload or otherwise. Top Issues coming up (all interelated to this issue) - Error thrown in Execute Code Card -Execution timed out -Card took too long to execute https://cdn.discordapp.com/attachments/1436101067535552612/1436101067875028993/screencapture-app-botpress-cloud-workspaces-7ad56e5c-bceb-4b07-880a-308fa7f791a3-bots-4d45c718-3645-471b-ab42-54f2db1e8880-issues-iss-01K9DETEPCER59CH18HYGPECHJ-2025-11-06-13_00_14.png?ex=690e60d8&is=690d0f58&hm=c76e01b929647bf9e111d77aa21e4887af1763edf86239c9c69c74f160616f51& https://cdn.discordapp.com/attachments/1436101067535552612/1436101068638650449/screencapture-app-botpress-cloud-workspaces-7ad56e5c-bceb-4b07-880a-308fa7f791a3-bots-4d45c718-3645-471b-ab42-54f2db1e8880-issues-iss-01K9DEWTXG3H9337YVJ9DP5NW3-2025-11-06-13_00_49.png?ex=690e60d8&is=690d0f58&hm=2bb9e7c5c82adcb8b020b3d009436dd12e5c68f40063c09d03310d5c949c751b& https://cdn.discordapp.com/attachments/1436101067535552612/1436101069179719831/screencapture-app-botpress-cloud-workspaces-7ad56e5c-bceb-4b07-880a-308fa7f791a3-bots-4d45c718-3645-471b-ab42-54f2db1e8880-issues-iss-01K9DEWV0WHADWWS7E7A195GH4-2025-11-06-13_01_09.png?ex=690e60d8&is=690d0f58&hm=26083f24532456348e80064aa80347d4f4dd87b0f2acb4e84d7371366a68032e&
Error thrown in Execute Code card 7 minutes ago 15 minutes old An error occured while running Execute Code card: Error: timeout of 108170ms exceeded Transpiled Code: 003 async function __ROOT__() { 004 var __defProp = Object.defineProperty; 005 var __name = (target, value) => __defProp(target, "name", { 006 value, 007 configurable: true 008 }); 009 async function __ROOT__() { 010 function getPayload(obj) { 011 try { 012 if (typeof obj === "string") { 013 obj = JSON.parse(obj); 014 } 015 } catch (err) { 016 throw new Error(
Invalid Payload string provided. Expected valid JSON.
); 017 } 018 if (typeof obj === "object" && _.isPlainObject(obj)) { 019 return obj; 020 } 021 throw new Error(
Invalid Payload provided. Got [${typeof obj}]
); 022 } 023 __name(getPayload, "getPayload"); 024 const payload = getPayload(workflow.Payload); 025 const { 026 output > 027 } = await client.callAction({ ^^^^^^^^^^ 028 type: "chat:sendEvent", 029 input: { 030 conversationId: workflow.ConversationID, 031 payload 032 // Already a JSON string 033 } 034 }); 035 workflow.Output = output; 036 } 037 __name(__ROOT__, "__ROOT__"); 038 ; > 039 return await __ROOT__(); ^^^^^^^^^^ 040 ; > 041 }; return await __ROOT__(); ^^^^^^^^^^ workflowId wf-c763f78058 [activity_session_recap_latest] nodeId nd-8982ba22d8 [with_tip] cardId ins-9350fa25a9 ["Validate and Process JSON Payload for Chat Event" #2] User code 2 Execution timed out 7 minutes ago | 15 minutes old The execution of the bot has exhausted the time limit of 60 seconds Other 2 Card took too long to execute 8 minutes ago | 17 minutes old A card has been executing for at least 30 seconds, which is too long for a single card workflowId wf-c763f78058 [activity_session_recap_latest] nodeId nd-8982ba22d8 [with_tip] cardId ins-9350fa25a9 ["Validate and Process JSON Payload for Chat Event" #2]
l
Hey @chilly-apartment-48668 I will notify the team and respond once I get some insight!
c
Hi Ross, thank you!
l
Could you provide your workspace ID incase we need it @chilly-apartment-48668
c
@loud-crowd-60573 Yes it's - 7ad56e5c-bceb-4b07-880a-308fa7f791a3
l
Hey @chilly-apartment-48668 I was given the following feed back: - Probably one of the APIs they are calling is taking longer to answer, causing a timeout - If it’s an API they manage and the operation is inherently slow, they can make the API call a request, then the response can be returned through a webhook trigger. Usually useful for operations that require alot of compute