Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploying the rasa webchat on server #129

Closed
DrGardiner opened this issue Oct 16, 2019 · 7 comments
Closed

Deploying the rasa webchat on server #129

DrGardiner opened this issue Oct 16, 2019 · 7 comments
Labels
wontfix This will not be worked on

Comments

@DrGardiner
Copy link

DrGardiner commented Oct 16, 2019

Hi,
I can run the rasa webchat successfully on localhost and it communicates correctly with my locally implemented rasa server. But the issue arises when I call the following command(same command which leads to successful connection) on server:
npx webpack-dev-server --config webpack.dev.js --port 8000
It says it has been compiled successfully but when I call the same port like this:
myserverip:8000
I don't get any result. Could you please give me a detailed instruction on how to implement it on server? (BTW, my server is Ubuntu 18.04 LTS)

In addition, when I use the webchat-0.5.8.js script and mimic the example you've provided I get an error like this in the browser console:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://SV-ipAddress-WAS-HERE:8080/socket.io/?EIO=3&transport=polling&t=MtLcjZT. (Reason: Multiple CORS header ‘Access-Control-Allow-Origin’ not allowed).
Although I have run RASA by rasa run --enable-api --cors "*" --debug --port 8080 --endpoints endpoints.yml I get this CORS error!
Same command on localhost works perfectly well!
I am looking forward to hearing from you guys
Thanks in advance

@piyush29programmer
Copy link

@DrGardiner which version of rasa are you using?

@DrGardiner
Copy link
Author

DrGardiner commented Oct 22, 2019

@DrGardiner which version of rasa are you using?

Hi Piyush,
I am using Rasa version 1.2.8 and 1.3.9 on server
I am using Rasa version 1.3.4 on localhost

@piyush29programmer
Copy link

are you using any load balancer like Nginx?

@DrGardiner
Copy link
Author

are you using any load balancer like Nginx?

I am using Apache

@piyush29programmer
Copy link

Could be try --cors '' instead --cors "" for ubuntu.

@stale
Copy link

stale bot commented Aug 3, 2020

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.

@stale stale bot added the wontfix This will not be worked on label Aug 3, 2020
@stale stale bot closed this as completed Aug 13, 2020
@tomimartin01
Copy link

Hi!,

How could you solve it? I have the same issue, I'm using Rasa 2.6.0 and rasa-webchat 1.0.0.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants