https://discord.gg/botpress logo
Receiving custom event in messaging api causing vi...
# 🤝help
g
Hi guys, I am using the messaging api to virtually invoke instances of my bot, my bot has a few
send custom event
cards. Over the past couple days, my virtual instances have not been working, i believe due to this:
Copy code
[bf0645bdc3]    [dm]    :     Error executing card "card:Send Custom Event" in flow:Main:node:test - qr: Conversation "conv_01KH0N6H0NQ4AQMPEKS0S0TYW2" does not exist
9 Feb 2026, 07:35:07
[bf0645bdc3]    [dm]    :     Falling back to Workflow Error
9 Feb 2026, 07:35:07
[bf0645bdc3]    [dm]    :     Transition from (flow:Error) [node:On_Error] to [node:Handler]
9 Feb 2026, 07:35:07
[bf0645bdc3]    [dm]    :     Error executing card "card:Send Custom Event" in flow:Error:node:Handler - qr: Conversation "conv_01KH0N6H0NQ4AQMPEKS0S0TYW2" does not exist
This has only started happening over the past couple days, is this intended behaviour, or should it not be happening, the conversation id definitely exists as i am looking at it in my logs, but the virtual agent crashes hard. As you can see from the screenshot, i am filtering logs via the same conv id, and it works fine. TIA! https://cdn.discordapp.com/attachments/1470324804237135912/1470324893731000476/Screenshot_2026-02-09_at_07.45.09.png?ex=698ae243&is=698990c3&hm=d07cb735c00c0564375130fbb9286911dba3964994c2a7327291e249db9ce967&
l
Taking a look!
g
Cheers Ross!
l
Have you used the free trial for plus plan yet? I think now could be a perfect use case 👍 You'll get 7 days of access to our support engineers they will hopefully be able to resolve this quick!
g
ok ok i will, thanks ross!
@loud-crowd-60573 Hi mate, I dont think i can upgrade to the free trial because im on a legacy botpress plan? i cant see free trial anywhere atm...
l
Hmm that's a good question. I would assume not if it's not there but I will double check with you and get back!
@gentle-policeman-89141
sad news
the free trials have been cancelled
g
Ahhh, no worries 😆 maybe i should post the issues in help aha
l
explain it as best as possible and i'll go bug them
g
Youre the man! good luck 1. (this thread, my send custom event card, when I use the messaging api to invoke background agent task,
[bf0645bdc3]    [dm]    :     Error executing card "card:Send Custom Event" in flow:Main:node:test - qr: Conversation "conv_01KH0N6H0NQ4AQMPEKS0S0TYW2" does not exist
2. I feel that
window.botpress.sendEvent
(sending event from web app to bot) OCCASIONALLY doesnt get processed by the bot, for example, if the bot is waiting on a raw input card lets say, and i send an event using that method (webapp -> bot), the bot doesnt move on from that card and the user is stuck indefinitely. Are there any workarounds here? Is this just a timeout error that i can negate? 3. I have a user Profile table, on timout, the conversation end workflow is invoked, and I update the users settings in the table using my apps (not event.userId) but user.clerkUserId. however, I get the error:
Copy code
[6d477e3892]    [bot-action]    [flow:Conversation End] [node:Handler] [card:"Upsert User Profiles Based on Clerk User ID"]:     BOTLOG|ERROR|clerk:?|user:?|conv:conv_01KHS2M45YHH4ZY7DJWXD1P89A|job:?|listing:?|flow:Conversation End/node:Handler| Missing clerkUserId; cannot upsert user profile { ts: '2026-02-19T12:38:11.626Z',
  level: 'ERROR',
  clerkUserId: null,
  conversationId: 'conv_01KHS2M45YHH4ZY7DJWXD1P89A',
  userId: null,
  jobId: null,
  listingId: null,
  currentFlow: 'flow:Conversation End',
  currentNode: 'node:Handler',
  currentCard: 'card:"Upsert User Profiles Based on Clerk User ID"',
  previousFlow: 'flow:Timeout',
  previousNode: 'node:On_Explicit_Ending',
  previousCard: '-',
  message: 'Missing clerkUserId; cannot upsert user profile,
but clerk user id is a user scoped variable, how does conversation end workflow not have access to it?
4. and finally, i get this error quite often:
Copy code
FlowError: Node not found. . Flow: wf-main | Node: nd-295b447bdf.
This error should not happen unless your conversation is in a corrupted state (eg. in progress on an older version of the chatbot).
To reset your conversational manually, say "//state/reset" to your chatbot to force the state to reset.
If this error persists, please contact support.
    at getNode (/var/task/customer_code.js:1441:821)
    at Object.processEvent (/var/task/customer_code.js:3001:1188)
    at Object.processEvent (/var/task/customer_code.js:3001:3544)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runDialogEngine (/var/task/customer_code.js:3001:5712)
    at async startEventProcessing (/var/task/customer_code.js:3001:5564)
    at async /var/task/customer_code.js:3871:755
    at async Object.handleEvent (/var/task/customer_code.js:3871:300)
    at async /var/task/customer_code.js:3869:243
    at async handler (/var/task/customer_code.js:245038:11622)
    at async /var/task/index.js:20:13921
    at async handleHTTPEvent (/var/task/index.js:20:13897)
    at async Runtime.handler (/var/task/index.js:20:13660) {
  flowId: 'wf-main',
  nodeId: 'nd-295b447bdf'
}
Im sorry @loud-crowd-60573 ❤️
l
@gentle-policeman-89141
4 Views