error: File scan error: Invalid JSON Input
Closed this issue · 0 comments
Hello, fresh install from source here.
I login into the admin pane and add a directory to the library. When I go back to the player, I get a "Call Failed" red message and looking ad the server logs I have this:
2023-04-14T10:37:12.282Z info: File scan completed with code 1
2023-04-14T10:37:18.335Z info: File scan started on undefined
2023-04-14T10:37:18.864Z error: File scan error: Invalid JSON Input
2023-04-14T10:37:18.870Z info: File scan message: [Error [ValidationError]: "directory" is required] {
_original: {
vpath: 'music',
port: 3000,
token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY2FuIjp0cnVlLCJpYXQiOjE2ODE0Njg2Mzh9.j4lOybFh5cA1kxm49GV0besqOLG-oPCZEVgIEy19Wl4',
albumArtDirectory: '/home/ubuntu/mStream/image-cache',
skipImg: false,
pause: 0,
supportedFiles: {
mp3: true,
flac: true,
wav: true,
ogg: true,
aac: true,
m4a: true,
m4b: true,
opus: true,
m3u: false
},
scanId: 'B4P-P88r',
isHttps: false,
compressImage: false
},
details: [
{
message: '"directory" is required',
path: [Array],
type: 'any.required',
context: [Object]
}
]
}
2023-04-14T10:37:18.879Z info: File scan completed with code 1
2023-04-14T10:40:24.348Z error: Server error on route /api/v1/file-explorer
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
at validateString (internal/validators.js:120:11)
at Object.join (path.js:1039:7)
at Object.exports.getVPathInfo (/home/ubuntu/mStream/src/util/vpath.js:24:20)
at /home/ubuntu/mStream/src/api/file-explorer.js:43:28
at /home/ubuntu/mStream/src/util/async-error.js:25:5
at Layer.handle [as handle_request] (/home/ubuntu/mStream/node_modules/express/lib/router/layer.js:95:5)
at next (/home/ubuntu/mStream/node_modules/express/lib/router/route.js:144:13)
at Route.dispatch (/home/ubuntu/mStream/node_modules/express/lib/router/route.js:114:3)
at Layer.handle [as handle_request] (/home/ubuntu/mStream/node_modules/express/lib/router/layer.js:95:5)
at /home/ubuntu/mStream/node_modules/express/lib/router/index.js:284:15
Am i doing something wrong?