Skip to content
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

TypeError: buf expected bytes, got <class 'str'> #86

Open
FrankFortier opened this issue May 28, 2024 · 0 comments
Open

TypeError: buf expected bytes, got <class 'str'> #86

FrankFortier opened this issue May 28, 2024 · 0 comments

Comments

@FrankFortier
Copy link

Hello I got an error in server.py line 243

` def on_timeout(self):
"""
Callback received on session timeout.

    Default implementation writes "Timeout." bound by CRLF and closes.

    This can be disabled by calling :meth:`set_timeout` with
    :paramref:`~.set_timeout.duration` value of ``0`` or value of
    the same for keyword argument ``timeout``.
    """
    logger.debug("Timeout after {self.idle:1.2f}s".format(self=self))
    self.writer.write("\r\nTimeout.\r\n")  <=== Problematic line
    self.timeout_connection()

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant