『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 4725|回复: 8

[求助] IOS APP上设置推送以后一段时间就出错

[复制链接]

1

主题

171

帖子

613

积分

高级会员

Rank: 4

积分
613
金钱
442
HASS币
0
发表于 2018-8-9 19:48:10 | 显示全部楼层 |阅读模式
按照囧大的帖子设置好了ios推送,测试的时候是可以收到信息的
但是大概30分钟以后,就没有办法收到推送了。
app是最新的,HA是742

错误信息如下,有没有人遇见过,是怎么解决的。
Log Details (ERROR)
Thu Aug 09 2018 19:41:14 GMT+0800 (中国标准时间)

Error executing service <ServiceCall notify.ios_iphone7lzz: title=<homeassistant.helpers.template.Template object at 0x663e1f70>, message=<homeassistant.helpers.template.Template object at 0x663e1f90>>
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 849, in _validate_conn
    conn.connect()
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connection.py", line 356, in connect
    ssl_context=context)
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/util/ssl_.py", line 359, in ssl_wrap_socket
    return context.wrap_socket(sock, server_hostname=server_hostname)
  File "/usr/lib/python3.5/ssl.py", line 385, in wrap_socket
    _context=self)
  File "/usr/lib/python3.5/ssl.py", line 760, in __init__
    self.do_handshake()
  File "/usr/lib/python3.5/ssl.py", line 996, in do_handshake
    self._sslobj.do_handshake()
  File "/usr/lib/python3.5/ssl.py", line 641, in do_handshake
    self._sslobj.do_handshake()
socket.timeout: _ssl.c:704: The handshake operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/adapters.py", line 445, in send
    timeout=timeout
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/util/retry.py", line 367, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/packages/six.py", line 686, in reraise
    raise value
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 306, in _raise_timeout
    raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='ios-push.home-assistant.io', port=443): Read timed out. (read timeout=10)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py", line 1038, in _event_to_service_call
    await service_handler.func(service_call)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/notify/__init__.py", line 137, in async_notify_message
    yield from notify_service.async_send_message(**kwargs)
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, 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/homeassistant/lib/python3.5/site-packages/homeassistant/components/notify/ios.py", line 94, in send_message
    req = requests.post(PUSH_URL, json=data, timeout=10)
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/api.py", line 112, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/sessions.py", line 512, in request
    resp = self.send(prep, **send_kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/sessions.py", line 622, in send
    r = adapter.send(request, **kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/adapters.py", line 526, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='ios-push.home-assistant.io', port=443): Read timed out. (read timeout=10)

回复

使用道具 举报

123

主题

4665

帖子

1万

积分

管理员

囧死

Rank: 9Rank: 9Rank: 9

积分
16452
金钱
11702
HASS币
45
发表于 2018-8-9 19:51:49 | 显示全部楼层
应该是你家网络的问题
回复

使用道具 举报

1

主题

171

帖子

613

积分

高级会员

Rank: 4

积分
613
金钱
442
HASS币
0
 楼主| 发表于 2018-8-9 20:01:40 | 显示全部楼层
Jones 发表于 2018-8-9 19:51
应该是你家网络的问题

网络好像是没有问题的,我的pi用的是花生壳接的外网,是不是有影响。
回复

使用道具 举报

8

主题

736

帖子

4608

积分

论坛元老

Rank: 8Rank: 8

积分
4608
金钱
3867
HASS币
40
QQ
发表于 2018-8-9 20:21:44 | 显示全部楼层
回复

使用道具 举报

5

主题

53

帖子

350

积分

论坛分享达人

筑梦者

积分
350
金钱
292
HASS币
0
QQ
发表于 2018-10-12 22:15:57 | 显示全部楼层
同样遇见过,也在等最佳解决方法

————————————————————————————————
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='ios-push.home-assistant.io', port=443): Read timed out. (read timeout=10)
————————————————————————————————
回复

使用道具 举报

17

主题

163

帖子

525

积分

高级会员

Rank: 4

积分
525
金钱
362
HASS币
0
发表于 2018-10-13 11:16:57 | 显示全部楼层
我也是同样的问题,我试试换一个wifi环境看看。
回复

使用道具 举报

18

主题

183

帖子

782

积分

高级会员

Rank: 4

积分
782
金钱
599
HASS币
0
发表于 2018-11-4 10:07:10 | 显示全部楼层
本帖最后由 rexandlanny 于 2018-11-4 10:27 编辑

还没有解决???
回复

使用道具 举报

18

主题

183

帖子

782

积分

高级会员

Rank: 4

积分
782
金钱
599
HASS币
0
发表于 2018-11-4 11:09:59 | 显示全部楼层
HTTPSConnectionPool(host='ios-push.home-assistant.io', port=443): Read timed  
我的是偶尔行  偶尔不行,发个通知全凭运气,是端口问题吗    还是网络问题   现在就差这一个问题没有解决了,大神看到帮帮忙
回复

使用道具 举报

1

主题

171

帖子

613

积分

高级会员

Rank: 4

积分
613
金钱
442
HASS币
0
 楼主| 发表于 2019-2-23 16:42:26 | 显示全部楼层
rexandlanny 发表于 2018-11-4 11:09
HTTPSConnectionPool(host='ios-push.home-assistant.io', port=443): Read timed  
我的是偶尔行  偶尔不 ...

仍然没有解决,时好时坏
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-12-26 23:42 , Processed in 0.391412 second(s), 31 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表