Skip to content

Unhandled error in plugin pushbullet: unsupported operand type(s) #1445

@ghost

Description

Expected behaviour:

Flexget should send a Pushbullet notification when it discovers/downloads a new item.

Actual behaviour:

Flexget doesn't send any notification and generates an error and crash dump.

Steps to reproduce:

  • Step 1: Configure pushbullet plugin with just the API KEY.
  • Step 2: Either schedule or fire up a task that would generate a valid entry.
  • Step 3: Check the logs for the error.

Config:

[secrets]
pushbullet:
  api_key: XXXXXXXXXXXX

[config]
templates:
  global:
    # Pushbullet
    pushbullet:
      apikey: '{{ secrets.pushbullet.api_key }}'

Log:

2016-10-12 11:15 CRITICAL task          TV_Shows_HD     BUG: Unhandled error in plugin pushbullet: unsupported operand type(s) for %: 'bytes' and 'bytes'
2016-10-12 11:15 DEBUG    manager       TV_Shows_HD     Traceback:
Traceback (most recent call last):
  File "/home/vuze/.local/lib64/python3.4/site-packages/flexget/task.py", line 472, in __run_plugin
    return method(*args, **kwargs)
  File "/home/vuze/.local/lib64/python3.4/site-packages/flexget/event.py", line 23, in __call__
    return self.func(*args, **kwargs)
  File "/home/vuze/.local/lib64/python3.4/site-packages/flexget/plugins/output/pushbullet.py", line 102, in on_task_output
    self.send_push(task, apikey, title, body, url)
  File "/home/vuze/.local/lib64/python3.4/site-packages/flexget/plugins/output/pushbullet.py", line 134, in send_push
    'Authorization': b'Basic %s' % base64.b64encode(api_key.encode('ascii')),
TypeError: unsupported operand type(s) for %: 'bytes' and 'bytes'
2016-10-12 11:15 WARNING  task          TV_Shows_HD     Aborting task (plugin: pushbullet)

Additional information:

  • Flexget Version: 2.3.43
  • Python Version: 3.4.3-r1
  • Installation method: pip install --upgrade flexget
  • OS and version: Gentoo Linux (Kernel 4.4.21)
  • Link to crash log: Crash log has the same information as the log fragment pasted above.

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