django-plotly-dash icon indicating copy to clipboard operation
django-plotly-dash copied to clipboard

Docker,nginx, daphne and django-plotly-dash channels issue

Open vats-vaibhav opened this issue 4 years ago • 1 comments

I am trying to run a django application with django plotly dash to update charts real time based on an event. I am using docker and nginx to deploy this on a cloud platform. But i am getting the below error

Error: nginx_1 | 172.20.0.1 - - [01/Feb/2021:11:48:05 +0000] "GET /ws/channel/ HTTP/1.1" 499 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36" "-" nginx_1 | 172.20.0.1 - - [01/Feb/2021:11:48:10 +0000] "GET /ws/channel/ HTTP/1.1" 400 5 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36" "-"

Django plotly dash documentation says we can use Nginx-->daphne -> django-plotly-dash but i am not able to find any examples or support on this.

Can you please help me with any working demo examples or configuration on this please??

vats-vaibhav avatar Feb 02 '21 08:02 vats-vaibhav

If it is only the websocket connection that is failing, the first place to look would be the proxy settings in your nginx.conf - are you using a configuration that can handle websockets? Also, is it correct to assume that other parts of the application (ie dpd apps without websockets) are working correctly?

GibbsConsulting avatar Feb 05 '21 15:02 GibbsConsulting