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

socks-tornado does not support path kwargs #112

Open
XxxUNIXxxX opened this issue Jul 21, 2017 · 0 comments
Open

socks-tornado does not support path kwargs #112

XxxUNIXxxX opened this issue Jul 21, 2017 · 0 comments

Comments

@XxxUNIXxxX
Copy link

SockJS-Tornado is really cool project and I'm very glad to use it. But Ive got the problem related to the path kwargs . For example:

Everything works fine If I don't use named path kwargs:

ChatRouter = sockjs.tornado.SockJSRouter(ChatHandler, '/chat')

If I change the prefix like this:

ChatRouter = sockjs.tornado.SockJSRouter(ChatHandler, '/chat/(?P<room_id>[a-z0-9]{2,20})')

I will get the error When I try to connect to the chat:

Traceback (most recent call last):
  File "/Users/rlashchenkov/projects/env_msg/lib/python3.5/site-packages/tornado/web.py", line 1467, in _execute
    result = method(*self.path_args, **self.path_kwargs)
TypeError: get() got an unexpected keyword argument 'room_id'
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