[Deluge] #3319: Problem getting host_id info from hostlist

4 views
Skip to first unread message

Deluge

unread,
Nov 8, 2019, 5:48:28 AM11/8/19
to delug...@googlegroups.com
#3319: Problem getting host_id info from hostlist
----------------------+-------------------
Reporter: jools772 | Type: bug
Status: new | Priority: major
Milestone: 2.0.4 | Component: Core
Version: 2.0.3 | Keywords:
----------------------+-------------------
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'

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3319>
Deluge <https://deluge-torrent.org/>
Deluge Project

Deluge

unread,
Dec 12, 2019, 1:41:15 PM12/12/19
to delug...@googlegroups.com
#3319: Problem getting host_id info from hostlist
-----------------------+-------------------
Reporter: jools772 | Owner:

Type: bug | Status: new
Priority: major | Milestone: 2.0.4
Component: Core | Version: 2.0.3
Resolution: | Keywords:
-----------------------+-------------------

Old description:

> 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'

New description:

{{{


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'

}}}

--

Comment (by Cas):

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`.

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3319#comment:1>

Deluge

unread,
Dec 12, 2019, 1:41:28 PM12/12/19
to delug...@googlegroups.com
#3319: Problem getting host_id info from hostlist
-----------------------+-------------------
Reporter: jools772 | Owner:
Type: bug | Status: new
Priority: minor | Milestone: 2.0.4
Component: Core | Version: 2.0.3
Resolution: | Keywords:
-----------------------+-------------------
Changes (by Cas):

* priority: major => minor


--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3319#comment:2>

Reply all
Reply to author
Forward
0 new messages