Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashing whilst sending a notification #221

Open
xircon opened this issue Oct 31, 2020 · 1 comment
Open

Crashing whilst sending a notification #221

xircon opened this issue Oct 31, 2020 · 1 comment

Comments

@xircon
Copy link

xircon commented Oct 31, 2020

ntfy send "steve"
Traceback (most recent call last):
  File "/usr/bin/ntfy", line 8, in <module>
    sys.exit(main())
  File "/usr/lib/python3.8/site-packages/ntfy/cli.py", line 362, in main
    return notify(
  File "/usr/lib/python3.8/site-packages/ntfy/__init__.py", line 29, in notify
    for backend in config.get('backends', ['default']):
TypeError: 'NoneType' object is not iterable

Config file:

---
backends:
pushbullet:
    access_token: <long-access-token>
simplepush:
    key: <Key>

I had this all working last night, so it is probably something I have done.

Simplepush is working, pushbullet was working but I think their server is down, any ideas?

:Edit: pushbullet now working, it was a glitch at their end.

:edit2:

ntfy -b default send 'hi world'

Setting the backend to default works.

@xircon xircon changed the title Crashing whilst send a notification Crashing whilst sending a notification Oct 31, 2020
@Cologler
Copy link

Cologler commented Nov 6, 2020

TypeError: 'NoneType' object is not iterable

Which means the value of backends is empty.

So change your config to:

backends:
    - pushbullet             <------ then your backends set to pushbullet
pushbullet:
    access_token: <long-access-token>
simplepush:
    key: <Key>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants