Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Error when closing the web interface #416

Closed
renanrodrigo opened this issue May 11, 2017 · 0 comments
Closed

Error when closing the web interface #416

renanrodrigo opened this issue May 11, 2017 · 0 comments

Comments

@renanrodrigo
Copy link
Contributor

If I'm working with the web interface and then close the browser window, the following error is shown in kytos:

Traceback (most recent call last):
  File "/home/renan/testes/asd/lib/python3.6/site-packages/werkzeug/serving.py", line 209, in run_wsgi
    execute(self.server.app)
  File "/home/renan/testes/asd/lib/python3.6/site-packages/werkzeug/serving.py", line 197, in execute
    application_iter = app(environ, start_response)
  File "/home/renan/testes/asd/lib/python3.6/site-packages/flask/app.py", line 1997, in __call__
    return self.wsgi_app(environ, start_response)
  File "/home/renan/testes/asd/lib/python3.6/site-packages/flask_socketio/__init__.py", line 42, in __call__
    start_response)
  File "/home/renan/testes/asd/lib/python3.6/site-packages/engineio/middleware.py", line 47, in __call__
    return self.engineio_app.handle_request(environ, start_response)
  File "/home/renan/testes/asd/lib/python3.6/site-packages/socketio/server.py", line 353, in handle_request
    return self.eio.handle_request(environ, start_response)
  File "/home/renan/testes/asd/lib/python3.6/site-packages/engineio/server.py", line 268, in handle_request
    self.disconnect(sid)
  File "/home/renan/testes/asd/lib/python3.6/site-packages/engineio/server.py", line 202, in disconnect
    self._get_socket(sid).close()
  File "/home/renan/testes/asd/lib/python3.6/site-packages/engineio/server.py", line 411, in _get_socket
    raise KeyError('Session is disconnected')
KeyError: 'Session is disconnected'
@beraldoleal beraldoleal added this to the 2017.1b3 milestone May 11, 2017
@macartur macartur self-assigned this May 19, 2017
macartur added a commit to macartur/kytos that referenced this issue May 19, 2017
This commit will improve the websocket to use gevent + gevent-websocket to avoid
the error KeyError: 'Session is disconnected'
Fix kytos#416
macartur added a commit to macartur/kytos that referenced this issue May 19, 2017
This commit will improve the websocket to use gevent + gevent-websocket to avoid
the error KeyError: 'Session is disconnected'
Fix kytos#416
cemsbr added a commit to cemsbr/kytos that referenced this issue May 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants