Skip to content

Commit cac4353

Browse files
authored
Merge v2.9.1 into master (#444)
* refactor eventsubws subscription error handling to not error on reconnect * potential fix for bug with headers not getting set after token updates * Revert "refactor eventsubws subscription error handling to not error on reconnect" This reverts commit bdb21b0. * formatting * changelog entry for both prs * add more changelogs * refactor eventsubws subscription error handling to not error on reconnect (#439) * refactor eventsubws subscription error handling to not error on reconnect * Why do we still support 3.7 * formatting * Add new API routes (#441) * Add new API routes * add docs * Add user emote endpoint * work around bad frame disconnect * run black * actually restart on bad frame * Update changelog.rst
1 parent 6cf71e4 commit cac4353

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

docs/changelog.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
:orphan:
22

3+
2.9.1
4+
=======
5+
- ext.eventsub
6+
- Bug fixes
7+
- fix: Special-cased a restart when a specific known bad frame is received.
8+
9+
310
2.9.0
411
=======
512
- TwitchIO

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
on_rtd = os.environ.get("READTHEDOCS") == "True"
2828
project = "TwitchIO"
29-
copyright = "2023, TwitchIO"
29+
copyright = "2024, TwitchIO"
3030
author = "PythonistaGuild"
3131

3232
# The full version, including alpha/beta/rc tags

twitchio/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
__title__ = "TwitchIO"
2828
__author__ = "TwitchIO, PythonistaGuild"
2929
__license__ = "MIT"
30-
__copyright__ = "Copyright 2017-2022 (c) TwitchIO"
31-
__version__ = "2.8.2"
30+
__copyright__ = "Copyright 2017-present (c) TwitchIO"
31+
__version__ = "2.9.1"
3232

3333
from .client import Client
3434
from .user import *

twitchio/ext/eventsub/websocket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ async def pump(self) -> None:
212212
except TypeError as e:
213213
logger.warning(f"Received bad frame: {e.args[0]}")
214214

215-
if e.args[0] is None: # websocket was closed, reconnect
215+
if "257" in e.args[0]: # websocket was closed, reconnect
216216
logger.info("Known bad frame, restarting connection")
217217
await self.connect()
218218
return

0 commit comments

Comments
 (0)