hagsteel / swampdragon

swampdragon
Other
557 stars 74 forks source link

ERROR:tornado.general:WebSocket ... DoesNotExist: TodoList matching query does not exist. #189

Open Nasjoe opened 8 years ago

Nasjoe commented 8 years ago

Hi ! I followed the first tutorial at : http://swampdragon.net/tutorial/part-1-here-be-dragons-and-thats-a-good-thing/

I changed a few lines like the {% static %} within the template as you indicate in another issue.

I work with Docker. I had to open ports 9999 and 6379 and run like this :

sudo docker run --rm -ti -p 8000:8000 -p 6379:6379 -p 9999:9999 --name swarmdragon --net host -v /DJANGO_PATH/:/swarmdragon swarmdragon bash

(can't acces to localhost:9999 from host without "-net host" option. Don't know why :/ )

When the docker container start, I have to start these process :

And everything seems to work in the host machine but :

-------- SwampDragon ------
Running SwampDragon on 127.0.0.1:9999
DRAGON_URL: http://localhost:9999/
Version 0.4.2.2
Debug: True
Quit the server with ctrl+c
---------------------------
ERROR:tornado.general:WebSocket
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/sockjs/tornado/transports/websocket.py", line 60, in on_message
    self.session.on_messages(msg)
  File "/usr/local/lib/python2.7/dist-packages/sockjs/tornado/session.py", line 418, in on_messages
    self.conn.on_message(msg)
  File "/usr/local/lib/python2.7/dist-packages/swampdragon/connections/sockjs_connection.py", line 90, in on_message
    raise e
DoesNotExist: TodoList matching query does not exist.

Django version : 1.8.6 Swampdragon just installed with pip

Did you know where this comes and how to correct ? Many thanks,

Jonas.