8000 Can't sent Twitter notification - exception · Issue #8645 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Can't sent Twitter notification - exception #8645

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

Closed
cmsimike opened this issue Jul 26, 2017 · 4 comments
Closed

Can't sent Twitter notification - exception #8645

cmsimike opened this issue Jul 26, 2017 · 4 comments

Comments

@cmsimike
Copy link
Contributor

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version):
.49.1

Python release (python3 --version):
3.5.2

Component/platform:
notify/twitter

Description of problem:
I cannot send notifications using twitter because of an exception

Expected:
Notification to be sent.

Problem-relevant configuration.yaml entries and steps to reproduce:

- id: to_work
  alias: 'to work
  trigger:
    platform: zone
    entity_id: device_tracker.person
    zone: zone.the_zone
    event: enter
  action:
    service: notify.twitter
    data:
      message: 'message'

Traceback (if applicable):

Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
    result = coro.throw(exc)
  File "/srv/hass/lib/python3.5/site-packages/homeassistant/core.py", line 1023, in _event_to_service_call
    yield from service_handler.func(service_call)
  File "/srv/hass/lib/python3.5/site-packages/homeassistant/components/notify/__init__.py", line 136, in async_notify_message
    yield from notify_service.async_send_message(**kwargs)
  File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/hass/lib/python3.5/site-packages/homeassistant/components/notify/twitter.py", line 63, in send_message
    media = data.get(ATTR_MEDIA)
AttributeError: 'NoneType' object has no attribute 'get'

Additional info:

@fabaff
Copy link
Member
fabaff commented Jul 26, 2017

Was fixed with #8513.

Duplicate of #8514.

@fabaff fabaff marked this as a duplicate of #8514 Jul 26, 2017
@fabaff fabaff closed this as completed Jul 26, 2017
@cmsimike
Copy link
Contributor Author

@fabaff is this in .49.1? I have upgraded and am still getting twitter exceptions.

@fabaff
Copy link
Member
fabaff commented Jul 26, 2017

No, sorry...will be in 0.50. I missed to mark it for 0.49.1

@cmsimike
Copy link
Contributor Author

@fabaff Gotcha - thank you very much!

@home-assistant home-assistant locked and limited conversation to collaborators Dec 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3839
Development

No branches or pull requests

2 participants
0