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 )
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 , 5 years ago
Description: | modified (diff) |
---|
comment:2 by , 5 years ago
Priority: | major → minor |
---|
Note:
See TracTickets
for help on using tickets.
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 thejson_api
call is expecting a deferred so either haveget_host_status
always return deferred (or tuple) or use themaybeDeferred
method injson_api
.