Live monitor not working

Issue #58 resolved
bmerry created an issue

Looks like another Python 3 str vs bytes issue:

web_1        | 2017-12-21 09:09:20,496 ERROR [gunicorn.error][DummyThread-13] Error handling request /api/1.0/task/2/monitor
web_1        | Traceback (most recent call last):
web_1        |   File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/async.py", line 56, in handle
web_1        |     self.handle_request(listener_name, req, client, addr)
web_1        |   File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/ggevent.py", line 152, in handle_request
web_1        |     super(GeventWorker, self).handle_request(*args)
web_1        |   File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/async.py", line 107, in handle_request
web_1        |     respiter = self.wsgi(environ, resp.start_response)
web_1        |   File "/usr/local/lib/python3.5/dist-packages/pyramid/router.py", line 242, in __call__
web_1        |     response = self.invoke_subrequest(request, use_tweens=True)
web_1        |   File "/usr/local/lib/python3.5/dist-packages/pyramid/router.py", line 217, in invoke_subrequest
web_1        |     response = handle_request(request)
web_1        |   File "/usr/local/lib/python3.5/dist-packages/pyramid/tweens.py", line 21, in excview_tween
web_1        |     response = handler(request)
web_1        |   File "/usr/local/lib/python3.5/dist-packages/pyramid/router.py", line 163, in handle_request
web_1        |     response = view_callable(context, request)
web_1        |   File "/usr/local/lib/python3.5/dist-packages/pyramid/config/views.py", line 329, in attr_view
web_1        |     return view(context, request)
web_1        |   File "/usr/local/lib/python3.5/dist-packages/pyramid/config/views.py", line 305, in predicate_wrapper
web_1        |     return view(context, request)
web_1        |   File "/usr/local/lib/python3.5/dist-packages/pyramid/config/views.py", line 355, in rendered_view
web_1        |     result = view(context, request)
web_1        |   File "/usr/local/lib/python3.5/dist-packages/pyramid/config/views.py", line 501, in _requestonly_view
web_1        |     response = view(request)
web_1        |   File "/opt/go-docker-web/godweb/views.py", line 1786, in api_task_monitor
web_1        |     res = json.loads(r.data)
web_1        |   File "/usr/lib/python3.5/json/__init__.py", line 312, in loads
web_1        |     s.__class__.__name__))
web_1        | TypeError: the JSON object must be str, not 'bytes'

I'm using the osallou/go-docker:1.3.6-2 Docker image.

Comments (3)

  1. Log in to comment