• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

marvinpinto / charlesbot
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: disjoint-ca-projects
DEFAULT BRANCH: master
Repo Added 31 Jul 2015 05:03PM UTC
Files 26
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH timeout-error
branch: timeout-error
CHANGE BRANCH
x
Reset
  • timeout-error
  • bumpversion-auto-updates
  • consolidate-avatars
  • disjoint-ca-projects
  • help-ping-plugins
  • master
  • ping-plugin
  • slack-singleton
  • sphinx-documentation
  • split-plugin-architecture
  • strip-broadcast-message-plugin
  • strip-jira-plugin
  • strip-pagerduty-plugin
  • update-documentation
  • v0.10.0
  • v0.5.0
  • v0.6.0
  • v0.7.0
  • v0.8.0
  • v0.9.0

pending completion
128

push

travis-ci

marvinpinto
Reconnect to the Slack websocket on disconnection

This ended up being a nasty bug that was hard to reproduce. The error
logs looked something like:

2015-09-24 07:58:02,432: ERROR [asyncio:1008] Task exception was never retrieved
future: <Task finished coro=<produce() done, defined at /src/env/lib/python3.4/site-packages/charlesbot/robot.py:28> exception=TimeoutError(110, 'Connection timed out')>
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/tasks.py", line 238, in _step
    result = next(coro)
  File "/src/env/lib/python3.4/site-packages/charlesbot/robot.py", line 31, in produce
    yield from self.route_message_to_plugin()
  File "/src/env/lib/python3.4/site-packages/charlesbot/robot.py", line 36, in route_message_to_plugin
    messages = self.sc.rtm_read()
  File "/src/env/lib/python3.4/site-packages/slackclient/_client.py", line 27, in rtm_read
    json_data = self.server.websocket_safe_read()
  File "/src/env/lib/python3.4/site-packages/slackclient/_server.py", line 109, in websocket_safe_read
    data += "{}\n".format(self.websocket.recv())
  File "/src/env/lib/python3.4/site-packages/websocket/_core.py", line 348, in recv
    opcode, data = self.recv_data()
  File "/src/env/lib/python3.4/site-packages/websocket/_core.py", line 365, in recv_data
    opcode, frame = self.recv_data_frame(control_frame)
  File "/src/env/lib/python3.4/site-packages/websocket/_core.py", line 378, in recv_data_frame
    frame = self.recv_frame()
  File "/src/env/lib/python3.4/site-packages/websocket/_core.py", line 410, in recv_frame
    return self.frame_buffer.recv_frame()
  File "/src/env/lib/python3.4/site-packages/websocket/_abnf.py", line 300, in recv_frame
    self.recv_header()
  File "/src/env/lib/python3.4/site-packages/websocket/_abnf.py", line 249, in recv_header
    header = self.recv_strict(2)
  File "/src/env/lib/python3.4/site-packages/websocket/_abnf.py", line 334, in recv_strict
    bytes = self.recv(min(16384, shortage))
  F... (continued)

668 of 668 relevant lines covered (100.0%)

1.0 hits per line

Relevant lines Covered
Build:
Build:
668 RELEVANT LINES 668 COVERED LINES
1.0 HITS PER LINE
Source Files on timeout-error
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
128 timeout-error Reconnect to the Slack websocket on disconnection This ended up being a nasty bug that was hard to reproduce. The error logs looked something like: 2015-09-24 07:58:02,432: ERROR [asyncio:1008] Task exception was never retrieved future: <Task fi... push 12 Nov 2015 02:39AM UTC marvinpinto travis-ci pending completion  
See All Builds (165)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc