Using an RaspberyPi 4 with Raspbian GNU/Linux 11 (bullseye) all local Api calls done using IPv6 fail with the exception
connect ECONNREFUSED ::1:3000
calls using IPv4 work as expected.
The issue manifests when localhost resolves to ::1 when passed to axios as a url e.g. src/db/scanner.js:119
Reproduction steps
flash a clean installation of raspbian to Rpi4
install dependencies (node-js/git)
clone and run mStream
add a folder containing music from the web-ui
observe console logs indicating exceptions during the scanner flow
Possible fixes
Updating the json config with "address": "::" completely resolves the issue and maintains expected functionality for both IPv4/6
Likewise directly updating src/state/config.js:56 to default the address configuration to :: also resolves the issue
After applying either of the above fixes, it appears to run without any additional configuration or issues.
Using an RaspberyPi 4 with
Raspbian GNU/Linux 11 (bullseye)
all local Api calls done using IPv6 fail with the exceptionconnect ECONNREFUSED ::1:3000
calls using IPv4 work as expected. The issue manifests whenlocalhost
resolves to::1
when passed to axios as a url e.g.src/db/scanner.js:119
Reproduction steps
Possible fixes
"address": "::"
completely resolves the issue and maintains expected functionality for both IPv4/6src/state/config.js:56
to default the address configuration to::
also resolves the issueAfter applying either of the above fixes, it appears to run without any additional configuration or issues.