Facebook Workplace - Taking a very long time for bot to respond

Hello,

I have been running my chatbot on Facebook Workplace and am having a problem with a timeout. Here is the log:

2020-09-15 19:41:49 DEBUG    rasa.core.policies.mapping_policy  - The mapped action, 'action_confirm_valor', for this intent, 'choose', was executed last so MappingPolicy is returning to action_listen.
2020-09-15 19:41:49 DEBUG    rasa.core.policies.ensemble  - Predicted next action using policy_0_MappingPolicy
2020-09-15 19:41:49 DEBUG    rasa.core.processor  - Predicted next action 'action_listen' with confidence 1.00.
2020-09-15 19:41:49 DEBUG    rasa.core.processor  - Action 'action_listen' ended with events '[]'.
2020-09-15 19:41:49 DEBUG    rasa.core.lock_store  - Deleted lock for conversation '100055014924413'.
/usr/lib/python3.6/asyncio/coroutines.py:110: ResourceWarning: unclosed <ssl.SSLSocket fd=18, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.158.0.2', 37950), raddr=('31.13.85.8', 443)>
  return self.gen.send(None)
2020-09-15 19:43:34 DEBUG    rasa.core.lock_store  - Issuing ticket for conversation '100055014924413'.
2020-09-15 19:43:34 DEBUG    rasa.core.lock_store  - Acquiring lock for conversation '100055014924413'.
2020-09-15 19:43:34 DEBUG    rasa.core.lock_store  - Acquired lock for conversation '100055014924413'.
2020-09-15 19:43:34 DEBUG    rasa.core.tracker_store  - Recreating tracker for id '100055014924413'
2020-09-15 19:43:34 DEBUG    rasa.core.processor  - Received user message 'filtros' with intent '{'name': 'filtros', 'confidence': 0.9796110391616821}' and entities '[]'
2020-09-15 19:43:34 DEBUG    rasa.core.processor  - Logged UserUtterance - tracker now has 103 events.
2020-09-15 19:43:34 DEBUG    rasa.core.policies.mapping_policy  - The predicted intent 'filtros' is mapped to  action 'action_ask_filtro' in the domain.
2020-09-15 19:43:34 DEBUG    rasa.core.policies.ensemble  - Predicted next action using policy_0_MappingPolicy
2020-09-15 19:43:34 DEBUG    rasa.core.processor  - Predicted next action 'action_ask_filtro' with confidence 1.00.
2020-09-15 19:43:34 DEBUG    rasa.core.actions.action  - Calling action endpoint to run action 'action_ask_filtro'.

The resource warning came up after the not responding for around a minute and a half and at that point was when the bot was finally responding.

This continues to happen every time I use the chatbot. Is there something I can do to alter the timeout? Is it a problem with the webhook?

Would you be able to help me better understand my problem and find a solution?

Thank you!

If you have an action that’s going to take a bit to run, this solution might work for you as well.