https://discord.gg/botpress logo
Infinity loop for single choice or row input
# 🤝help
b
Hello, I have a problem with the fact that the bot catch an infinity loop with card. Description: I built a bot that uses js code to access our backend system, which helps us save progress and perform navigation. The bot works through Facebook messenger. When catch this problem I can't do something for restart conversation or go to the next card. I just tucked on card. Republishing the bot doesn't help disrupt the conversation, changing settings or anything else doesn't help either. A few days ago everything was fine and the bot in exactly the same form worked perfectly without this problem. Bot ID:
9f5aa326-40a7-46d8-9be2-4e746cbe2346
Conversation ID with this problem:
conv_01J0N480BGA0BCDDG83TMRMN7H
Please tell me if perhaps I need to provide something else so that you can investigate this. Since this is very important for us, due to the fact that a person is simply stuck in one place and cannot move further in the dialogue no matter what he answers. https://cdn.discordapp.com/attachments/1262792612935503963/1262792613174710414/2024-07-16_18.17.19.png?ex=6697e2c4&is=66969144&hm=6a99726c9eb454ea0f7731c26784b89b1fb7a689c115b600c2835a4abb2520a1& https://cdn.discordapp.com/attachments/1262792612935503963/1262792613539479552/2024-07-16_18.18.08.png?ex=6697e2c4&is=66969144&hm=b4b8b0d4bd2839027cc3ad564b98a8e5fb19a58dfe745bc2345c9b6e4cdaa91f&
b
does this issue happen outside of facebook messenger?
b
I don't know, we use only Facebook messenger integration in your service now.
b
can you test if this occurs in other channels like webchat?
just use the share link in the studio to test this
b
i'll try now
b
let me know!
b
I tried in the test chat window and it's not reproduced.
l
@bumpy-butcher-41910 Any updates on this one? 🙏
b
so to confirm - you're only running into this issue on Meta integrations?
l
Yes
l
I have the same problem, the node gives error, infinite loop detected - les.org/dl/14652521/extratodecreditomontepio.pdf', '1': 'https://tmpfiles.org/dl/14652529/extratodecreditomillenium.pdf', '2': 'https://tmpfiles.org/dl/14652537/extratodecreditonovobanco.pdf' } [c58e3d06ee] [dm] : Execute transition "if workflow.counter = workflow.filedetails.length" [c58e3d06ee] [dm] : An unexpected error occurred. [Error, Infinite loop detected. (flow:Main (node:SendDatatoMake) --> flow:Main (node:SendDatatoMake)). Flow: flow:Main | Node: node:SendDatatoMake. 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.] a) I am calling make.com twice in a loop, it executes twice and when it is about to exit the loop, it catches error - ""if workflow.counter = workflow.filedetails.length" <- this condition is to exit the loop. where the counter and length has met the condition to exit b) this was working fine until yesterday https://cdn.discordapp.com/attachments/1262792612935503963/1298179663838974024/image.png?ex=67189f86&is=67174e06&hm=71c0013d1c6da8b8e224b34412c26b3b4e29f98a455dcadc15e18ef4bb218b62&
report_01JASGW32WPK449Y9Z5FX9F1QF
@square-energy-41150 please look into this
s
# Sending a Problem Report Here's how to send the Botpress Team a problem report: 1. In the Botpress Cloud Studio, locate the "Help" icon in the bottom left corner of the screen. 2. Click "Report a problem" and follow the steps on the screen. 3. Copy the Report ID to your clipboard and provide it to a member of the Botpress Team on Discord.
message has been deleted
l
I have a deliverable and this peice of code working untill yesterday, suddenly stopped working here are logs from yesterday 21 Oct 2024, 19:21:38 [22d2c7c1dc] [dm] : Execute transition "if workflow.counter is equal to workflow.filedetails.length" 21 Oct 2024, 19:21:39 [whatsapp] Successfully sent text message from bot to Whatsapp: Text { body: 'Make Url: {\n' + ' "0": "https://tmpfiles.org/dl/14628722/santander_squares.pdf",\n' + ' "1": "https://tmpfiles.org/dl/14628734/abanca_squares.pdf"\n' + '}', preview_url: undefined } 21 Oct 2024, 19:21:39 [22d2c7c1dc] [dm] : Transition from (flow:Main) [node:SendDatatoMake] to [node:CheckforUserInformation] today it breaks
@white-nest-40686 @fresh-fireman-491 @bumpy-butcher-41910 - Can anyone guide what is going wrong
I found something - your node is in a loop (a finite loop) but it does not have a output card, the code stops working - between yesterday and today that was the only change and adding text card solved the issue
w
i think problem is the expression i don't see it by your label is different yesterday label, check it is
workflow.counter == workflow.filedetails.length
with == and not =
l
It's solved, i tried all possible ways, but once there is an output card it works
5 Views