circus-tent/circus-web

[Connect page] A timeout on the entered endpoint should not return a 500 but a wrong endpoint error

Closed this issue · 2 comments

[Connect page] A timeout on the entered endpoint should not return a 500 but a wrong endpoint error
2013-06-10 07:06:21 [2713] [INFO] Starting master on pid 2713
2013-06-10 07:06:21 [2713] [INFO] sockets started
2013-06-10 07:06:21 [2713] [INFO] webconsole started
2013-06-10 07:06:21 [2713] [INFO] circusd-stats started
2013-06-10 07:06:21 [2713] [INFO] Arbiter now waiting for commands
2013-06-10 07:06:21 [2721] [INFO] Starting the stats streamer
2013-06-10 07:06:21 [2720] [INFO] Application is <beaker.middleware.SessionMiddleware object at 0x2059f90>
2013-06-10 07:06:21 [2720] [INFO] Serving on fd://5
2013-06-10 07:06:21 [2720] [INFO] Using <class 'chaussette.backend._socketio.Server'> as a backend
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/bottle.py", line 764, in _handle
    return route.call(**args)
  File "/usr/local/lib/python2.7/dist-packages/bottle.py", line 1575, in wrapper
    rv = callback(*a, **ka)
  File "/usr/local/lib/python2.7/dist-packages/circusweb/util.py", line 100, in client_or_redirect
    return func(*fargs, **fkwargs)
  File "/usr/local/lib/python2.7/dist-packages/circusweb/circushttpd.py", line 108, in connect
    return _ask_connection()
  File "/usr/local/lib/python2.7/dist-packages/circusweb/circushttpd.py", line 105, in _ask_connection
    endpoints=app.discovery_thread.get_endpoints())
AttributeError: 'SessionMiddleware' object has no attribute 'discovery_thread'
0.0.0.0 - - [2013-06-10 07:06:32] "GET /connect HTTP/1.1" 500 889 0.002739

Is the same error?

Fixed on master