partially resolved - 
with pip installed tornado 3.1

and now  example  works:

but in console I see Tornado exception:

ERROR:tornado.application:Uncaught exception POST / (127.0.0.1)
HTTPRequest(protocol='http', host='127.0.0.1:8888', method='POST', uri='/', 
version='HTTP/1.0', remote_ip='127.0.0.1', headers={'Content-Length': '68', 
'Content-Type': 'application/x-www-form-urlencoded', 'Host': 
'127.0.0.1:8888', 'User-Agent': 'Mozilla/4.0'})
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1155, 
in _when_complete
    raise ValueError("Expected Future or None, got %r" % result)
ValueError: Expected Future or None, got 'true'
ERROR:tornado.access:500 POST / (127.0.0.1) 4.52ms


2013 m. liepa 4 d., ketvirtadienis 15:36:25 UTC+3, Jurgis Pralgauskis rašė:
>
> ps.: how to use newer module of tornado?
> as in system install I have  python-tornado 2.1.0-2ubuntu0.1
>
> 2013 m. liepa 4 d., ketvirtadienis 15:24:04 UTC+3, Jurgis Pralgauskis rašė:
>>
>> in tornado.websockets.py I find line:
>>
>> "HTTP/1.1 426 Upgrade Required\r\n"
>>
>> what could it mean?
>>
>> https://github.com/facebook/tornado/blob/60693e011cc0602d83a29ac37fa7263eda107f61/tornado/websocket.py#L151
>>
>> 2013 m. liepa 4 d., ketvirtadienis 11:57:16 UTC+3, Jurgis Pralgauskis 
>> rašė:
>>>
>>> any ideas why?
>>> and how could I debug in more detail?
>>> I'm on Ubuntu 12.04.2 LTS
>>>
>>> 2013 m. liepa 2 d., antradienis 15:33:06 UTC+3, Jurgis Pralgauskis rašė:
>>>>
>>>> Chrome error log says:
>>>>
>>>> WebSocket connection to 'ws://127.0.0.1:8888/realtime/mygroup' failed: 
>>>> Unexpected response code: 426 
>>>>
>>>> the mesagges from serverside (python) reach tornado (I see in console)
>>>> I run w2p locally.
>>>>
>>>> Tested with FF (21.0)  and Chrome (26.0.1410.63 ), which work OK with 
>>>> http://www.websocket.org/echo.html 
>>>>
>>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to