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

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

Open
Nasjoe opened this issue Jan 6, 2016 · 0 comments

Comments

@Nasjoe
Copy link

Nasjoe commented Jan 6, 2016

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 :

  • service redis-server start
  • ./manage.py runsd
  • ./manage.py runserver 0.0.0.0:8000

And everything seems to work in the host machine but :

  • I have to refresh when i add the first "TodoList object" to see it, but all the new "TodoItem object" appear well when i add, without refresh (that's the point ^^)
  • I don't see another "TodoList object" if I add it in the admin panel. Even if I refresh.
  • I get a strange error in the console from "./manage.py runsd" when I delete all the "TodoList object" and refresh the page. Same when i add a new "TodoList object" when I create a new one after the delete :
-------- 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.

@Nasjoe Nasjoe changed the title DoesNotExist: TodoList matching query does not exist. ERROR:tornado.general:WebSocket ... DoesNotExist: TodoList matching query does not exist. Jan 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant