Opened 5 years ago

Last modified 3 years ago

#3319 new bug

Problem getting host_id info from hostlist

Reported by: jools772 Owned by:
Priority: minor Milestone: 2.0.6
Component: Core Version: 2.0.3
Keywords: Cc:

Description (last modified by Calum)

12:34:51 [WARNING ][deluge.ui.hostlist         :209 ] Problem getting host_id info from hostlist
12:34:51 [ERROR   ][deluge.ui.web.json_api     :168 ] Error calling method `web.get_host_status`: 'tuple' object has no attribute 'addCallback'
12:34:51 [ERROR   ][deluge.ui.web.json_api     :1413] 'tuple' object has no attribute 'addCallback'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/deluge/ui/web/json_api.py", line 160, in _handle_request
    result = self._exec_local(method, params, request)
  File "/usr/lib/python3/dist-packages/deluge/ui/web/json_api.py", line 122, in _exec_local
    return meth(*params)
  File "/usr/lib/python3/dist-packages/deluge/ui/web/json_api.py", line 797, in get_host_status
    return self.hostlist.get_host_status(host_id).addCallback(response)
AttributeError: 'tuple' object has no attribute 'addCallback'

Change History (4)

comment:1 by Calum, 5 years ago

Description: modified (diff)

Although the resulting error will need fixed, the warning tells us that it is due to the host_id passed in not being correct and cannot be found in the hostlist.conf. Please check that config value in webui matches one in the hostlist.

The issue in Hostlist.get_host_status is it returning a tuple where the json_api call is expecting a deferred so either have get_host_status always return deferred (or tuple) or use the maybeDeferred method in json_api.

comment:2 by Calum, 5 years ago

Priority: majorminor

comment:3 by Calum, 3 years ago

Milestone: 2.0.42.0.5

Ticket retargeted after milestone closed

comment:4 by Calum, 3 years ago

Milestone: 2.0.52.0.6

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.