Changes between Initial Version and Version 1 of Ticket #3319


Ignore:
Timestamp:
12/12/2019 06:41:09 PM (4 years ago)
Author:
Cas
Comment:

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.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3319 – Description

    initial v1  
     1{{{ 
    1212:34:51 [WARNING ][deluge.ui.hostlist         :209 ] Problem getting host_id info from hostlist 
    2312:34:51 [ERROR   ][deluge.ui.web.json_api     :168 ] Error calling method `web.get_host_status`: 'tuple' object has no attribute 'addCallback' 
     
    1011    return self.hostlist.get_host_status(host_id).addCallback(response) 
    1112AttributeError: 'tuple' object has no attribute 'addCallback' 
     13 
     14}}}