[SOLVED] Plex Media Server 1.40.0.7998 fails to start on pychromecast plugin

Server Version 1.40.0.7998:

   casts = pychromecast.get_chromecasts(1, None, None, True)
 File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Cast.bundle/Contents/Libraries/Shared/pychromecast/__init__.py", line 80, in get_chromecasts
   blocking=blocking))
 File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Cast.bundle/Contents/Libraries/Shared/pychromecast/__init__.py", line 47, in _get_chromecast_from_host
   blocking=blocking)
 File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Cast.bundle/Contents/Libraries/Shared/pychromecast/__init__.py", line 174, in __init__
   blocking=blocking)
 File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Cast.bundle/Contents/Libraries/Shared/pychromecast/socket_client.py", line 208, in __init__
   self.initialize_connection()
 File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Cast.bundle/Contents/Libraries/Shared/pychromecast/socket_client.py", line 244, in initialize_connection
   self.socket.connect((self.host, self.port))
 File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/socket.py", line 228, in meth
   return getattr(self._sock,name)(*args)
ypeError: getsockaddrarg() argument 1 must be encoded string without null bytes, not str

sorry, errors in isolation are not actionable.

there is no way of knowing how that happened.

can you provide details / context / DEBUG LOG FILES ZIP which capture it?

Is that this? Looks like it.

GitHub - d8ahazard/Cast.bundle: A Plex Channel To Interact With Local Cast Devices, Via Plex Media Server

It says it’s been deprecated.

The replacement also hasn’t been updated in years.

And Plex announced removal of support for plug-ins generally in 2018.

omg lol
you are right
It’s been so long since I installed this plugin I forgot it was even there.
I removed it and it’s all good again.