arkaitzj/wsvnc — Issue #1: KeyError: 'wsgi.websocket'
Author: user245
Created: 2011-12-10 11:32:22+00:00
State: open

Sadly does not work (chrome 15 or firefox 8). When connect:

Traceback (most recent call last):
File "C:\Programs\Python27\lib\site-packages\gevent\pywsgi.py", line 445, in handle_one_response
self.run_application()
File "C:\Programs\Python27\lib\site-packages\gevent\pywsgi.py", line 431, in run_application
self.result = self.application(self.environ, self.start_response)
File "C:\Documents and Settings\user\desktop\wsvnc\wsvnc.py", line 46, in __call__
ws = environ['wsgi.websocket']
KeyError: 'wsgi.websocket'
{'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTP_CONNECTION': 'Upgrade',
'HTTP_HOST': 'localhost:9999',
'HTTP_SEC_WEBSOCKET_KEY': 'GPMNB7mgGJIdUFtQXV0XVw==',
'HTTP_SEC_WEBSOCKET_ORIGIN': 'http://localhost:8000',
'HTTP_SEC_WEBSOCKET_VERSION': '8',
'HTTP_UPGRADE': 'websocket',
'PATH_INFO': '/ip.ip.ip.ip:5900',
'QUERY_STRING': '',
'REMOTE_ADDR': '127.0.0.1',
'REQUEST_METHOD': 'GET',
'SCRIPT_NAME': '',
'SERVER_NAME': 'user',
'SERVER_PORT': '9999',
'SERVER_PROTOCOL': 'HTTP/1.0',
'SERVER_SOFTWARE': 'gevent/1.0 Python/2.7',
'wsgi.errors': ,
'wsgi.input': ,
'wsgi.multiprocess': False,
'wsgi.multithread': False,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 0)} failed with KeyError