Skip to content

Unhandled error in plugin from_transmission #2794

@shotfirer

Description

@shotfirer

Expected behavior:

Get the list of entries from the transmission.

Actual behavior:

Unhandled error in plugin from_transmission.

Steps to reproduce:

  • Step 1: Upgrade to 3.1.92
  • Step 2: Install transmission-rpc
  • Step 3: Use from_transmission in task

Config:

  TRANS_CLN:
    no_entries_ok: yes
    from_transmission:
      <<: *transmission_settings
      only_complete: yes
    disable: [seen, seen_info_hash, notify]
    if:
      - transmission_progress == 100: accept
      - not transmission_seed_ratio_ok: reject
      - not transmission_idle_limit_ok: reject
    transmission:
      <<: *transmission_settings
      action: remove

Log:

(click to expand)
2020-12-28 14:15:51 CRITICAL task          TRANS_CLN       BUG: Unhandled error in plugin from_transmission: 'Client' object has no attribute 'http_handler'
Traceback (most recent call last):

  File "/usr/lib/python3.6/threading.py", line 884, in _bootstrap
    self._bootstrap_inner()
    │    └ <function Thread._bootstrap_inner at 0xb6838c90>
    └ <Thread(task_queue, stopped daemon -1446013856)>
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
    │    └ <function Thread.run at 0xb6838b70>
    └ <Thread(task_queue, stopped daemon -1446013856)>
  File "/usr/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
    │    │        │    │        │    └ {}
    │    │        │    │        └ <Thread(task_queue, stopped daemon -1446013856)>
    │    │        │    └ ()
    │    │        └ <Thread(task_queue, stopped daemon -1446013856)>
    │    └ <bound method TaskQueue.run of <flexget.task_queue.TaskQueue object at 0xb16bfc10>>
    └ <Thread(task_queue, stopped daemon -1446013856)>

  File "/usr/local/lib/python3.6/dist-packages/flexget/task_queue.py", line 46, in run
    self.current_task.execute()
    │    │            └ <function Task.execute at 0xb5490738>
    │    └ <flexget.task.Task object at 0xaecb87f0>
    └ <flexget.task_queue.TaskQueue object at 0xb16bfc10>

  File "/usr/local/lib/python3.6/dist-packages/flexget/task.py", line 87, in wrapper
    return func(self, *args, **kw)
           │    │      │       └ {}
           │    │      └ ()
           │    └ <flexget.task.Task object at 0xaecb87f0>
           └ <function Task.execute at 0xb54906f0>

  File "/usr/local/lib/python3.6/dist-packages/flexget/task.py", line 722, in execute
    self._execute()
    │    └ <function Task._execute at 0xb54906a8>
    └ <flexget.task.Task object at 0xaecb87f0>

  File "/usr/local/lib/python3.6/dist-packages/flexget/task.py", line 688, in _execute
    self.__run_task_phase(phase)
    │                     └ 'input'
    └ <flexget.task.Task object at 0xaecb87f0>

  File "/usr/local/lib/python3.6/dist-packages/flexget/task.py", line 514, in __run_task_phase
    response = self.__run_plugin(plugin, phase, args)
               │                 │       │      └ (<flexget.task.Task object at 0xaecb87f0>, {'host': '192.168.0.250', 'port': 9091, 'username': 'tnt', 'password': 'fylhtq1973...
               │                 │       └ 'input'
               │                 └ <PluginInfo(name=from_transmission)>
               └ <flexget.task.Task object at 0xaecb87f0>

> File "/usr/local/lib/python3.6/dist-packages/flexget/task.py", line 547, in __run_plugin
    result = method(*args, **kwargs)
             │       │       └ {}
             │       └ (<flexget.task.Task object at 0xaecb87f0>, {'host': '192.168.0.250', 'port': 9091, 'username': 'tnt', 'password': 'fylhtq1973...
             └ <Event(name=plugin.from_transmission.input,func=on_task_input,priority=128)>

  File "/usr/local/lib/python3.6/dist-packages/flexget/event.py", line 20, in __call__
    return self.func(*args, **kwargs)
           │    │     │       └ {}
           │    │     └ (<flexget.task.Task object at 0xaecb87f0>, {'host': '192.168.0.250', 'port': 9091, 'username': 'tnt', 'password': 'fylhtq1973...
           │    └ <bound method PluginTransmissionInput.on_task_input of <flexget.plugins.clients.transmission.PluginTransmissionInput object a...
           └ <Event(name=plugin.from_transmission.input,func=on_task_input,priority=128)>

  File "/usr/local/lib/python3.6/dist-packages/flexget/plugins/clients/transmission.py", line 186, in on_task_input
    self.client.http_handler.set_authentication(
    │    └ <transmission_rpc.client.Client object at 0xae28ec50>
    └ <flexget.plugins.clients.transmission.PluginTransmissionInput object at 0xb16d38f0>

AttributeError: 'Client' object has no attribute 'http_handler'
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/flexget/task.py", line 547, in __run_plugin
    result = method(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/flexget/event.py", line 20, in __call__
    return self.func(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/flexget/plugins/clients/transmission.py", line 186, in on_task_input
    self.client.http_handler.set_authentication(
AttributeError: 'Client' object has no attribute 'http_handler'

Additional information:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions