Containter stack works on local mode but not deployed in ECS

Hi, my team is test deploying a rasa open source 3.0.8 chatbot (without rasa-x). We have a stack of docker containers (rasa+actions+duckling) that succesfully works via ngrok:

What we achieved so far in our local test deployment:

  1. we get connection and bot responses locally to our facebook channel via messaging on a test page and test app and we get the widget working with bot responses at the localhost rest channel. Facebook connection is tested via ngrok.

  2. This is done in a local Docker stack via docker compose

We are trying to deploy the service in amazon ECS, what we achieved so far is:

  1. We hosted the service in ECS, getting an amazon url for the webhooks.

  2. We get Hello from Rasa: 3.0.8 at amazonurl/prod

  3. we get status:ok at /prod/webhooks/facebook and /prod/webhooks/rest, by acessing the provided url anywhere

Now we are facing the following issues

  1. We can’t connect our webpage widget to the test rest webhook. However POST requests and bot responses work fine on the rest channel. One of our engineers says it is CORS related but he hasn’t managed to figure it out.

  2. We can’t add the webhook in the app manager at developers facebook. We get The callback URL or verify token couldn't be validated. Please verify the provided information or try again later. If we test the webhook directly as in Webhook Setup - Messenger Platform - Documentation - Facebook for Developers we also get failure, invalid token

Our verification token has not changed and has the format hello_world.

Any help appreciated, does anyone have any experience deploying in the cloud without rasa-x?

I realize I posted on sunday so maybe not getting a lot of attentiom, we are now trying to connect the socketio and the default widget on rasa documentation and facing similar issues, we are getting a warining message “The client is using an unsupported version of the Socket.IO or Engine.IO protocols” again, socketio channel works in localmode with ngrok but we can’t make it work via AWS ECS. We are most likely missing something, does anyone know a step by step on how to deploy a rasa OS bot in AWS?

I assume you’re using facebook messenger connected to a facebook page. There are a lot of steps that you must follow to get this working correctly (facebook couldn’t make this more complicated). I’d make sure you’ve gone thru those steps. Basic Rasa docs on this are here.

The default endpoint is https://<host>:<port>/webhooks/facebook/webhook.

Thank you, I did follow those steps, again our issue is when local and ngrok everything works, but in AWS there is a lot of config that has to go on for it to work, we managed to make the web widget work by enabling CORS but the other channels seem to be blocked. Anyway, we are thinking of moving the test to google cloud run cause it has been super expensive to run on AWS.