Skip to content
This repository has been archived by the owner on Apr 1, 2022. It is now read-only.

Prevent the Chatbot to Send the same message multiple time #96

Open
elinguiuriel opened this issue Aug 4, 2020 · 3 comments
Open

Prevent the Chatbot to Send the same message multiple time #96

elinguiuriel opened this issue Aug 4, 2020 · 3 comments
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed

Comments

@elinguiuriel
Copy link
Contributor

Describe the bug

In some occasion, the Chatbot send the same message multiple time
Someone have a solution for this misbehavior, cause unknown, maybe :

To Reproduce

it happen random when heroku is asleep (try here : https://m.me/OpenSourceChatbot

Expected behavior

The same message should not be send multiple time

Screenshots

image

@elinguiuriel elinguiuriel added bug Something isn't working enhancement New feature or request help wanted Extra attention is needed labels Aug 4, 2020
@aboullaite
Copy link
Contributor

aboullaite commented Aug 4, 2020

My thinking about this one is when heroku receives no request, it switch to idle mode! Now when the first user sends the request, it takes to time to warm up the app, and the the messenger api sends multiple hooks to heroku, which answers afterwards 😅

@merrcury
Copy link

Heroku's Pricing model for Hobby project keeps web app in off state if It did not receive a request for too long. So, When you make a request, It basically takes time to get the app-server started and It's quite slow. So, I recommend you to use Azure, Its app service model is free and won't go to sleep like Heroku.

@Awinja-j
Copy link
Contributor

Awinja-j commented Oct 5, 2020

Thanks for the recommendation @merrcury

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants