When using standard ports (in my test 443, port 80 probably throws the same error) I get an error when trying to skip songs.
Turns out, that the Node.updatePlayer function constructs an URL using new URL(...) and therefore loses the port (because it is standard). When trying to replace the poolAddress, the substring can't be replaced due to the missing port.
See: here
A possible fix would be instead of using .toString().replace(...) to just get the URL parts manually:
r.path = url.pathname + url.search;
There may be more places where this might be an issue, but I haven't come around to testing all cases.
Hey again, I found an issue when debugging a bit.
When using standard ports (in my test 443, port 80 probably throws the same error) I get an error when trying to skip songs.
Turns out, that the
Node.updatePlayer
function constructs an URL usingnew URL(...)
and therefore loses the port (because it is standard). When trying to replace thepoolAddress
, the substring can't be replaced due to the missing port. See: hereA possible fix would be instead of using
.toString().replace(...)
to just get the URL parts manually:There may be more places where this might be an issue, but I haven't come around to testing all cases.