Skip to content
This repository has been archived by the owner on Dec 29, 2017. It is now read-only.

RTM reconnect error #53

Open
ovv opened this issue Sep 22, 2017 · 0 comments
Open

RTM reconnect error #53

ovv opened this issue Sep 22, 2017 · 0 comments

Comments

@ovv
Copy link
Member

ovv commented Sep 22, 2017

2017-09-21 23:49:39,044 - sirbot.slack.dispatcher.event - DEBUG - Event handler received: {'type': 'presence_change', 'presence': 'active', 'user': 'U4TJSS0V7'}
2017-09-21 23:49:42,047 - sirbot.slack.dispatcher.event - DEBUG - Event handler received: {'type': 'presence_change', 'presence': 'away', 'user': 'U24H3BBM2'}
2017-09-21 23:49:42,127 - sirbot.slack.dispatcher.event - DEBUG - Event handler received: {'type': 'presence_change', 'presence': 'away', 'user': 'U72SR8BFC'}
2017-09-21 23:49:43,048 - sirbot.slack.dispatcher.event - DEBUG - Event handler received: {'type': 'presence_change', 'presence': 'active', 'user': 'U72SR8BFC'}
2017-09-21 23:49:55,060 - sirbot.slack.dispatcher.event - DEBUG - Event handler received: {'type': 'presence_change', 'presence': 'active', 'user': 'U5TFZGBSB'}
2017-09-21 23:54:55,059 - sirbot.slack.api - WARNING - WS ERROR: WSMessage(type=<WSMsgType.ERROR: 258>, data=EofStream(), extra=None)
2017-09-21 23:54:55,059 - sirbot.slack.api - WARNING - Trying to reconnect to slack
2017-09-21 23:54:55,059 - sirbot.slack.api - DEBUG - Connecting...
2017-09-21 23:54:55,059 - sirbot.slack.api - DEBUG - Querying SLACK HTTP API: https://slack.com/api/rtm.connect
2017-09-21 23:54:56,279 - sirbot.slack.api - DEBUG - Slack HTTP API response: OK for https://slack.com/api/rtm.connect
2017-09-21 23:55:01,413 - sirbot.slack.dispatcher.event - ERROR - 'type'
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/sirbot/slack/dispatcher/event.py", line 47, in incoming_rtm
    if event['type'] == 'message':
KeyError: 'type'
2017-09-21 23:55:01,413 - sirbot.slack.api - WARNING - WS ERROR: WSMessage(type=<WSMsgType.ERROR: 258>, data=EofStream(), extra=None)
2017-09-21 23:55:01,413 - sirbot.slack.api - WARNING - Trying to reconnect to slack
2017-09-21 23:55:01,413 - sirbot.slack.api - DEBUG - Connecting...
2017-09-21 23:55:01,413 - sirbot.slack.api - DEBUG - Querying SLACK HTTP API: https://slack.com/api/rtm.connect
2017-09-21 23:55:02,170 - sirbot.slack.api - DEBUG - Slack HTTP API response: OK for https://slack.com/api/rtm.connect
2017-09-21 23:55:07,252 - sirbot.slack.dispatcher.event - ERROR - 'type'
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/sirbot/slack/dispatcher/event.py", line 47, in incoming_rtm
    if event['type'] == 'message':
KeyError: 'type'
2017-09-21 23:55:07,253 - sirbot.slack.api - WARNING - WS ERROR: WSMessage(type=<WSMsgType.ERROR: 258>, data=EofStream(), extra=None)
2017-09-21 23:55:07,253 - sirbot.slack.api - WARNING - Trying to reconnect to slack
2017-09-21 23:55:07,253 - sirbot.slack.api - DEBUG - Connecting...
2017-09-21 23:55:07,253 - sirbot.slack.api - DEBUG - Querying SLACK HTTP API: https://slack.com/api/rtm.connect
2017-09-21 23:55:07,870 - sirbot.slack.api - DEBUG - Slack HTTP API response: OK for https://slack.com/api/rtm.connect
2017-09-21 23:55:12,997 - sirbot.slack.dispatcher.event - ERROR - 'type'
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/sirbot/slack/dispatcher/event.py", line 47, in incoming_rtm
    if event['type'] == 'message':
KeyError: 'type'
2017-09-21 23:55:12,997 - sirbot.slack.api - WARNING - WS ERROR: WSMessage(type=<WSMsgType.ERROR: 258>, data=EofStream(), extra=None)
2017-09-21 23:55:12,998 - sirbot.slack.api - WARNING - Trying to reconnect to slack
2017-09-21 23:55:12,998 - sirbot.slack.api - DEBUG - Connecting...
2017-09-21 23:55:12,998 - sirbot.slack.api - DEBUG - Querying SLACK HTTP API: https://slack.com/api/rtm.connect
2017-09-21 23:55:13,651 - sirbot.slack.api - DEBUG - Slack HTTP API response: OK for https://slack.com/api/rtm.connect
2017-09-21 23:55:18,733 - sirbot.slack.dispatcher.event - ERROR - 'type'
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/sirbot/slack/dispatcher/event.py", line 47, in incoming_rtm
    if event['type'] == 'message':
KeyError: 'type'
2017-09-21 23:55:18,734 - sirbot.slack.api - WARNING - WS ERROR: WSMessage(type=<WSMsgType.ERROR: 258>, data=EofStream(), extra=None)
2017-09-21 23:55:18,734 - sirbot.slack.api - WARNING - Trying to reconnect to slack
2017-09-21 23:55:18,734 - sirbot.slack.api - DEBUG - Connecting...
2017-09-21 23:55:18,734 - sirbot.slack.api - DEBUG - Querying SLACK HTTP API: https://slack.com/api/rtm.connect
2017-09-21 23:55:19,334 - sirbot.slack.api - DEBUG - Slack HTTP API response: OK for https://slack.com/api/rtm.connect
2017-09-21 23:55:24,423 - sirbot.slack.dispatcher.event - ERROR - 'type'
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/sirbot/slack/dispatcher/event.py", line 47, in incoming_rtm
    if event['type'] == 'message':
KeyError: 'type'
2017-09-21 23:55:24,423 - sirbot.slack.api - WARNING - WS ERROR: WSMessage(type=<WSMsgType.ERROR: 258>, data=EofStream(), extra=None)
2017-09-21 23:55:24,424 - sirbot.slack.api - WARNING - Trying to reconnect to slack
2017-09-21 23:55:24,424 - sirbot.slack.api - DEBUG - Connecting...
2017-09-21 23:55:24,424 - sirbot.slack.api - DEBUG - Querying SLACK HTTP API: https://slack.com/api/rtm.connect
2017-09-21 23:55:24,781 - sirbot.slack.api - DEBUG - Slack HTTP API response: OK for https://slack.com/api/rtm.connect
2017-09-21 23:55:29,880 - sirbot.slack.dispatcher.event - ERROR - 'type'
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/sirbot/slack/dispatcher/event.py", line 47, in incoming_rtm
    if event['type'] == 'message':
KeyError: 'type'
2017-09-21 23:55:29,881 - sirbot.slack.api - WARNING - WS ERROR: WSMessage(type=<WSMsgType.ERROR: 258>, data=EofStream(), extra=None)
2017-09-21 23:55:29,881 - sirbot.slack.api - WARNING - Trying to reconnect to slack
2017-09-21 23:55:29,881 - sirbot.slack.api - DEBUG - Connecting...
2017-09-21 23:55:29,881 - sirbot.slack.api - DEBUG - Querying SLACK HTTP API: https://slack.com/api/rtm.connect
2017-09-21 23:55:30,297 - sirbot.slack.api - DEBUG - Slack HTTP API response: OK for https://slack.com/api/rtm.connect
2017-09-21 23:55:35,399 - sirbot.slack.dispatcher.event - ERROR - 'type'
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/sirbot/slack/dispatcher/event.py", line 47, in incoming_rtm
    if event['type'] == 'message':
KeyError: 'type'
2017-09-21 23:55:35,399 - sirbot.slack.api - WARNING - WS ERROR: WSMessage(type=<WSMsgType.ERROR: 258>, data=EofStream(), extra=None)
2017-09-21 23:55:35,399 - sirbot.slack.api - WARNING - Trying to reconnect to slack
2017-09-21 23:55:35,399 - sirbot.slack.api - DEBUG - Connecting...
2017-09-21 23:55:35,399 - sirbot.slack.api - DEBUG - Querying SLACK HTTP API: https://slack.com/api/rtm.connect
2017-09-21 23:55:36,104 - sirbot.slack.api - DEBUG - Slack HTTP API response: OK for https://slack.com/api/rtm.connect
2017-09-21 23:55:41,274 - sirbot.slack.dispatcher.event - ERROR - 'type'
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/sirbot/slack/dispatcher/event.py", line 47, in incoming_rtm
    if event['type'] == 'message':
KeyError: 'type'
2017-09-21 23:55:41,275 - sirbot.slack.api - WARNING - WS ERROR: WSMessage(type=<WSMsgType.ERROR: 258>, data=EofStream(), extra=None)
2017-09-21 23:55:41,275 - sirbot.slack.api - WARNING - Trying to reconnect to slack
2017-09-21 23:55:41,275 - sirbot.slack.api - DEBUG - Connecting...
2017-09-21 23:55:41,275 - sirbot.slack.api - DEBUG - Querying SLACK HTTP API: https://slack.com/api/rtm.connect
2017-09-21 23:55:41,914 - sirbot.slack.api - DEBUG - Slack HTTP API response: OK for https://slack.com/api/rtm.connect
2017-09-21 23:55:47,008 - sirbot.slack.dispatcher.event - ERROR - 'type'
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/sirbot/slack/dispatcher/event.py", line 47, in incoming_rtm
    if event['type'] == 'message':
KeyError: 'type'
2017-09-21 23:55:47,009 - sirbot.slack.api - WARNING - WS ERROR: WSMessage(type=<WSMsgType.ERROR: 258>, data=EofStream(), extra=None)
2017-09-21 23:55:47,009 - sirbot.slack.api - WARNING - Trying to reconnect to slack
2017-09-21 23:55:47,009 - sirbot.slack.api - DEBUG - Connecting...
2017-09-21 23:55:47,009 - sirbot.slack.api - DEBUG - Querying SLACK HTTP API: https://slack.com/api/rtm.connect
2017-09-21 23:55:47,629 - sirbot.slack.api - DEBUG - Slack HTTP API response: OK for https://slack.com/api/rtm.connect
2017-09-21 23:55:52,718 - sirbot.slack.dispatcher.event - ERROR - 'type'
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/sirbot/slack/dispatcher/event.py", line 47, in incoming_rtm
    if event['type'] == 'message':
KeyError: 'type'
2017-09-21 23:55:52,718 - sirbot.slack.api - WARNING - WS ERROR: WSMessage(type=<WSMsgType.ERROR: 258>, data=EofStream(), extra=None)
2017-09-21 23:55:52,719 - sirbot.slack.api - WARNING - Trying to reconnect to slack
2017-09-21 23:55:52,719 - sirbot.slack.api - DEBUG - Connecting...
2017-09-21 23:55:52,719 - sirbot.slack.api - DEBUG - Querying SLACK HTTP API: https://slack.com/api/rtm.connect
2017-09-21 23:55:52,823 - sirbot.slack.api - ERROR - Client error, status code: 429
2017-09-21 23:55:53,824 - sirbot.slack.api - WARNING - Trying to reconnect to slack
2017-09-21 23:55:53,825 - sirbot.slack.api - ERROR - 'NoneType' object has no attribute 'close'
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/sirbot/slack/api.py", line 426, in reconnect
    await self.connect()
  File "/usr/local/lib/python3.6/site-packages/sirbot/slack/api.py", line 441, in connect
    url = (await self._negotiate_rtm_url())['url']
  File "/usr/local/lib/python3.6/site-packages/sirbot/slack/api.py", line 414, in _negotiate_rtm_url
    data = await self._do_post(APIPath.RTM_CONNECT)
  File "/usr/local/lib/python3.6/site-packages/sirbot/slack/api.py", line 94, in _do_post
    return await self._validate_response(response, url)
  File "/usr/local/lib/python3.6/site-packages/sirbot/slack/api.py", line 145, in _validate_response
    raise SlackConnectionError(e)
sirbot.slack.errors.SlackConnectionError: Client error, status code: 429

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/sirbot/slack/api.py", line 425, in reconnect
    await self._ws.close()
AttributeError: 'NoneType' object has no attribute 'close'
2017-09-22 01:28:21,888 - sirbot.slack.api - DEBUG - Querying SLACK HTTP API: https://slack.com/api/channels.info
2017-09-22 01:28:22,083 - sirbot.slack.api - DEBUG - Slack HTTP API response: OK for https://slack.com/api/channels.info
2017-09-22 01:28:22,313 - sirbot.slack.api - DEBUG - Message Sent: {'attachments': '[{"fallback": "pull request opened", "mrkdwn_in": ["pretext", "text", "fields"], "attachment_type": "default", "text": "*<https://github.com/pyslackers/ansible-role-common/pull/2|WIP: included ufw in the main.yml handler file>*\\n", "color": "good", "author_name": "m1yag1", "author_icon": "https://avatars3.githubusercontent.com/u/8730430?v=4", "author_link": "https://github.com/m1yag1", "title": "Pull request opened in <https://github.com/pyslackers/ansible-role-common|ansible-role-common>: <https://github.com/pyslackers/ansible-role-common/pull/2|WIP: included ufw in the main.yml handler file>", "footer": "+ 2 / - 1"}]', 'as_user': False, 'mrkdwn': True, 'channel': 'C2FMLUBEU'}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant