Thanks BoringName, that was quick! The good news is that the error is gone, the bad news is that there are "No items" displayed. To be specific, when clicking on the server in HA, instead of seeing the Albums, Playlists, etc. folders, it says "No items".
. The MusicBee icon is still missing too.
0; 1 Initialise - 6/29/2025 4:27:09 PM
38; 2 GetNetworkAddresses - 10.0.0.232,dns=True,name=Ethernet,speed=1000000000
39; 3 GetNetworkAddresses - 169.254.214.134,dns=False,name=Npcap Loopback Adapter,speed=1215752192
39; 4 GetNetworkAddresses - 127.0.0.1,dns=False,name=Loopback Pseudo-Interface 1,speed=1073741824
39; 5 GetNetworkAddresses - http://10.0.0.232:49382
25328; 6 Profile - Generic Device, useragent=HomeAssistant/2025.5.3 aiohttp/3.11.18 Python/3.13
31591; 7 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
31596; 8 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
31598; 9 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
31599; 10 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
31599; 11 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
31600; 12 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
31600; 13 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
31600; 14 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
31608; 15 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
31608; 16 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
31608; 17 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
31609; 18 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
31609; 19 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
31655; 20 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
31678; 21 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
31679; 22 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
31679; 23 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
31679; 24 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
32599; 25 Profile - Generic Device, useragent=DAFUPnP
33598; 26 Profile - Generic Device, useragent=Microsoft-Windows/10.0 UPnP/1.0
34610; 27 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
40605; 28 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
40609; 29 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
40611; 30 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
41645; 31 ProcessRequest:Exception - Length cannot be less than zero.
Parameter name: length
at System.String.Substring(Int32 startIndex, Int32 length)
at MusicBeePlugin.Plugin.HttpRequest.ParseHeaders()
at MusicBeePlugin.Plugin.HttpServer.ProcessRequest(Object parameters)
42603; 32 ProcessRequest:Exception - Index was outside the bounds of the array.
at MusicBeePlugin.Plugin.HttpRequest.ParseHeaders()
at MusicBeePlugin.Plugin.HttpServer.ProcessRequest(Object parameters)
42604; 33 Profile - Generic Device, useragent=HomeAssistant/2025.5.3 aiohttp/3.11.18 Python/3.13
42611; 34 Browse - 0,BrowseMetadata,0,0,sort=
43597; 35 ProcessRequest:Exception - Index was outside the bounds of the array.
at MusicBeePlugin.Plugin.HttpRequest.ParseHeaders()
at MusicBeePlugin.Plugin.HttpServer.ProcessRequest(Object parameters)
43598; 36 Profile - Generic Device, useragent=HomeAssistant/2025.5.3 aiohttp/3.11.18 Python/3.13
43599; 37 Browse - 0,BrowseDirectChildren,0,0,sort=
43607; 40 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
43610; 42 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
43611; 43 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
46604; 48 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
52609; 49 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
52612; 50 Profile - Generic Device, useragent=Linux/5.10.103-v7+, UPnP/1.0, Portable SDK for UPnP devices/1.6.25
While I was doing this, I noticed HA has debug log option as well, so I turned that on at the same time:
I attached Visual Studio to the MusicBee process and tried to debug the Length cannot be less than zero exception. It occurs when HA tries to enumerate the devices (i.e. clicking Media and then browsing the servers). The full message is "Length cannot be less than zero.\r\nParameter name: length". Here is the dump you can analyze:
Note there were other Web/Socket exceptions during this, which I ignored, but they seemed unrelated (connecting to 169.* IPs).