botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
69 stars 83 forks source link

Socket Handshake Error after changing External URL #1079

Closed prashantkaria closed 2 years ago

prashantkaria commented 4 years ago

I have domain attached with botpress and did reverse proxy so it can work with SSL. I wanted to change the url like chat.mydomain.com/abcd. So I added that url in botpress config file (externalUrl). That is working to open the studio but chat is not working.

I checked the console but it's giving me following error :- Error during WebSocket handshake: Unexpected response code: 400

I have tried to change socket url in proxy setting in my apache conf file but still the same error. I checked the document but it only mention about changing externalURL variable and nothing else so I am not sure how to solve this error.

I am using Apache as web server and I have bot installed on AWS Ec2 Ubuntu 18.04

arunptp commented 3 years ago

I am also facing the same problem. Any solution to this issue?

prashantkaria commented 3 years ago

I am also facing the same problem. Any solution to this issue?

Nope I still didn't find the solution. I hope we get answer from someone who knows the solution.

allardy commented 3 years ago

Hello @prashantkaria and @arunptp , there is a special configuration required for the websocket when using NGINX, can you check the documentation to see if it's configured correctly? https://botpress.com/docs/advanced/hosting#setting-up-nginx

What transport are you using? did you try switching long polling / websocket in the botpress configuration?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

J-FMartin commented 2 years ago

Hi - we will close this, please reopen if need be.