Failed to connect my website to rasa-x server

I followed the tutorial https://rasa.com/docs/rasa-x/installation-and-setup/install/docker-compose to deploy my rasa-x server on google cloud platform and it was successfull. The problem is i can’t connect my bot to my django app using websocket channel as stated in the example https://github.com/botfront/rasa-webchat.

I keep getting the following error index.js:116 GET http://35.238.41.104:5002/socket.io/?EIO=4&transport=polling&t=NatapCA net::ERR_CONNECTION_TIMED_OUT index.js:123 Error: xhr poll error at e.exports.onError (index.js:12) at f. (index.js:116) at f.r.emit (index.js:1) at f.onError (index.js:116) at index.js:116

Hi @HermanCeaser, I have the same problem did you solve it. If yes how ?

not yet, still debugging my way through it

Thank for replying, me i am still debugging.

I just updated my rasa-x version to 0.39.3 the “latest” version and also upgraded my rasa version to 2.5.0 to match my custom action server version which was 2.5.0 and :boom: it worked. This is the tutorial i followed :point_down:

https://gstephens.org/rasa/chatbot/2019/08/12/rasa-x-upgrade.html

I also configured my rasax.nginix.template in nginx-config-files folder to allows CORS from all origins

location ~* \.(eot|ttf|woff|woff2)$ {
    add_header Access-Control-Allow-Origin *;
}

how to configure nginx-config-files

@HermanCeaser How to do this:

location ~* .(eot|ttf|woff|woff2)$ { add_header Access-Control-Allow-Origin *; }

please @HermanCeaser, help me to fine the nginx-config-files folder.

@Papa, so when you login, navigate to your rasa installation folder then to nginx-config-files

cd /etc/rasa/nginx-config-files/

Then open the rasax.nginx.template file using your favourite editor in my case nano like

nano rasax.nginx.template

add that line at the end of the file before the last closing bracket

thank you

@HermanCeaser hi again, I dit it but it doesn’t work for me. When i do /etc/rasa/ cat .venv I have the following version RASA_X_VERSION=0.39.3 RASA_VERSION=2.4.0 RASA_X_DEMO_VERSION=0.38.0 RASA_TELEMETRY_ENABLED=true REDIS_PASSWORD=4jgvrhTh_uAEc RABBITMQ_PASSWORD=svKTVx6QjEeMx RASA_X_TOKEN=UM1BePmu78CH JWT_SECRET=H5PRrvobfeVSfpMsrchx RASA_TOKEN=gtKiprPKYYEzn DB_PASSWORD=T0pZb13c2zkT do you have the same ?