Skip to content

TypeError: str, bytes or bytearray expected, not int #97

Closed
@urb31075

Description

@urb31075

urb@san:~/python-websocket-server$ python3 server.py
Traceback (most recent call last):
File "server.py", line 22, in
server = WebsocketServer(PORT)
File "/home/urb/python-websocket-server/websocket_server/websocket_server.py", line 117, in init
TCPServer.init(self, (host, port), WebSocketHandler)
File "/usr/lib/python3.8/socketserver.py", line 452, in init
self.server_bind()
File "/usr/lib/python3.8/socketserver.py", line 466, in server_bind
self.socket.bind(self.server_address)
TypeError: str, bytes or bytearray expected, not int

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions