modules icon indicating copy to clipboard operation
modules copied to clipboard

Unable to use Botpress-Messenger with few users simultaneously

Open nicopetremann opened this issue 7 years ago • 9 comments

Hi team

I'm currently building a bot with Botpress and Messenger Module. I'm experiencing some trouble to get multiple users using the bot simultaneously. If two users are chatting with the bot at the same time, it answers one after the other, and then involves delay for the users. Any idea where does it come from?

Thx

nicopetremann avatar Jun 01 '18 18:06 nicopetremann

Hi, could you share more information about your bot? Botpress version, Botpress-Messenger version and also how you're handling user responses?

Thanks

slvnperron avatar Jun 01 '18 18:06 slvnperron

@slvnperron Hi, i'm working with @nicopetremann. We are using the 10.2.1 (botpress and channel-messenger) and handling every ingoing messages with the dialogEngine. The issue only appears with Facebook. We tried to spam the bot with multiple users from FB and the internal Chat, and only users from FB where affected.

mvdt avatar Jun 01 '18 19:06 mvdt

Thanks to both, will investigate now and get back to you ASAP

slvnperron avatar Jun 01 '18 19:06 slvnperron

@mvdt Found the issue and pushed a fix, updating to version 10.13.4 (core & modules) will fix the issue for you. There shouldn't be much changes required on your side from 10.2 to 10.13, but please have a look at the changelog: https://botpress.io/docs/beta/reference/

slvnperron avatar Jun 01 '18 20:06 slvnperron

Thanks @slvnperron !

mvdt avatar Jun 01 '18 20:06 mvdt

Hi Team,

I am using 10.17.3 (code and module). I am only seeing the bot responding through 1 of the user on messenger, my other users are unable to elicit a response through messenger, any ideas?

By the way, I am getting an error each time i do bp start. Error as follows, An error has been returned by Facebook API.\nStatus: 400 (Bad Request)\nAn unknown error occurred\nInvalid Permissions\nYou could not subscribe to some of the fields requested due to a permissions error. Related maybe?

Thanks.

victorcorvenus avatar Jun 17 '18 13:06 victorcorvenus

Hey @victorcorvenus ,

Can you elaborate on the behavior you are seeing and how to replicate that?

For the error, you can remove the "ads" permission from the messenger config in the config/channel-messenger.json file.

slvnperron avatar Jun 19 '18 00:06 slvnperron

Hi @slvnperron

Basically I have ngrok setup and done bp start. I sent message to the bot through messenger and the bot successfully responds through messenger without any errors.

But when I invited a few friends to try saying "Hi" in the same manner to the messenger page, the bot does not respond and under botpress "audience" section there are no new audiences added.

My friends tried with iPhone messenger app and through pc browser but still no response.

victorcorvenus avatar Jun 19 '18 15:06 victorcorvenus

@slvnperron found the issue, basically I did not add my friends into the testers list

Important

Make sure the Facebook user from which you're sending the message is listed as the Admin or Developer or Tester in your app roles (https://developers.facebook.com/apps/YOUR_APP_ID/roles/). Messages from other users won't work unless your app is approved and publicly released.

Thanks!

victorcorvenus avatar Jun 19 '18 16:06 victorcorvenus