question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unhandled error in plugin from_transmission

See original GitHub issue

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:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
gazpachokingcommented, Dec 29, 2020

Also I think that the breaking change in https://github.com/Trim21/transmission-rpc/releases/tag/v3.0.0a4 breaks the client plugin transmission in FlexGet. I had to downgrade FlexGet to 3.1.91 to keep transmission working.

E.g. this does not work in Flexget 3.1.92: https://github.com/Flexget/Flexget/blob/v3.1.92/flexget/plugins/clients/transmission.py#L492

Yep, that’ll break things too. We should start requiring >=3.0 and switch to that new interface.

0reactions
gazpachokingcommented, Jan 8, 2021

Oops, that other error is already tracked in #2798. Closing this one again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

BUG: Unhandled error in plugin from_transmission #2811
Flexget continues to connect to Transmission without crashing when username and password are provided. This is recent new crashing behaviour.
Read more >
Flexget/Flexget - Gitter
cerberii CRITICAL task kickasstorrents BUG: Unhandled error in plugin transmission: Trying to render non string template, got None.
Read more >
help - Forum - FlexGet - RSSing.com
Exception while loading plugin flexget.plugins.clients.deluge. September 25, 2016, 5:23 am. Next Crash report - Unhandled error in lazyΒ ...
Read more >
Unhandled rejection Error in plugin "webpack-stream"
I suspect the problem is that you have a mismatch between the version of Babel core and the Babel plugins/presets that you are...
Read more >
broken config - python etc errors - Deluge Forum
Yesterday I decided to switch from transmission to deluged on my seedbox. ... Unhandled Error Traceback (most recent call last): FileΒ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found