LavalinkHTTPError: Unable to validate JSON response
LavalinkHTTPError: Unable to validate JSON response
at C:\Users\hamit\OneDrive\Belgeler\GitHub\stade-discord-bot-v14\node_modules\lavalink-api-client\dist\endpoint\factory.js:72:19
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
... 3 lines matching cause stack trace ...
at async module.exports (C:\Users\hamit\OneDrive\Belgeler\GitHub\stade-discord-bot-v14\src\events\interactions\interactionCreate.js:18:5) {
reason: 'VALIDATION',
[cause]: SchemaError: Failed to parse value
at Object.parse (C:\Users\hamit\OneDrive\Belgeler\GitHub\stade-discord-bot-v14\node_modules\lavalink-api-client\node_modules\lavalink-protocol\dist\index.js:29:15)
... 5 lines matching cause stack trace ...
at async module.exports (C:\Users\hamit\OneDrive\Belgeler\GitHub\stade-discord-bot-v14\src\events\interactions\interactionCreate.js:18:5) {
[cause]: TypeError: error(s) found
└─ union member
└─ ["data"]["pluginInfo"]["url"]
└─ Expected number, actual "https://open.spotify.com/album/79y7DSLFQH3907u4ysOMGr"
at new SchemaError (C:\Users\hamit\OneDrive\Belgeler\GitHub\stade-discord-bot-v14\node_modules\lavalink-api-client\node_modules\lavalink-protocol\dist\index.js:38:20)
at Object.parse (C:\Users\hamit\OneDrive\Belgeler\GitHub\stade-discord-bot-v14\node_modules\lavalink-api-client\node_modules\lavalink-protocol\dist\index.js:29:15)
at C:\Users\hamit\OneDrive\Belgeler\GitHub\stade-discord-bot-v14\node_modules\lavalink-api-client\dist\endpoint\factory.js:68:23
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async play (C:\Users\hamit\OneDrive\Belgeler\GitHub\stade-discord-bot-v14\src\commands\music\play.js:111:19)
at async Object.interactionRun (C:\Users\hamit\OneDrive\Belgeler\GitHub\stade-discord-bot-v14\src\commands\music\play.js:44:22)
at async Object.handleSlashCommand (C:\Users\hamit\OneDrive\Belgeler\GitHub\stade-discord-bot-v14\src\handlers\command.js:140:7)
at async module.exports (C:\Users\hamit\OneDrive\Belgeler\GitHub\stade-discord-bot-v14\src\events\interactions\interactionCreate.js:18:5)
}
}
LavalinkHTTPError: Unable to validate JSON response
at C:\Users\hamit\OneDrive\Belgeler\GitHub\stade-discord-bot-v14\node_modules\lavalink-api-client\dist\endpoint\factory.js:72:19
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
... 3 lines matching cause stack trace ...
at async module.exports (C:\Users\hamit\OneDrive\Belgeler\GitHub\stade-discord-bot-v14\src\events\interactions\interactionCreate.js:18:5) {
reason: 'VALIDATION',
[cause]: SchemaError: Failed to parse value
at Object.parse (C:\Users\hamit\OneDrive\Belgeler\GitHub\stade-discord-bot-v14\node_modules\lavalink-api-client\node_modules\lavalink-protocol\dist\index.js:29:15)
... 5 lines matching cause stack trace ...
at async module.exports (C:\Users\hamit\OneDrive\Belgeler\GitHub\stade-discord-bot-v14\src\events\interactions\interactionCreate.js:18:5) {
[cause]: TypeError: error(s) found
└─ union member
└─ ["data"]["pluginInfo"]["url"]
└─ Expected number, actual "https://open.spotify.com/album/79y7DSLFQH3907u4ysOMGr"
at new SchemaError (C:\Users\hamit\OneDrive\Belgeler\GitHub\stade-discord-bot-v14\node_modules\lavalink-api-client\node_modules\lavalink-protocol\dist\index.js:38:20)
at Object.parse (C:\Users\hamit\OneDrive\Belgeler\GitHub\stade-discord-bot-v14\node_modules\lavalink-api-client\node_modules\lavalink-protocol\dist\index.js:29:15)
at C:\Users\hamit\OneDrive\Belgeler\GitHub\stade-discord-bot-v14\node_modules\lavalink-api-client\dist\endpoint\factory.js:68:23
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async play (C:\Users\hamit\OneDrive\Belgeler\GitHub\stade-discord-bot-v14\src\commands\music\play.js:111:19)
at async Object.interactionRun (C:\Users\hamit\OneDrive\Belgeler\GitHub\stade-discord-bot-v14\src\commands\music\play.js:44:22)
at async Object.handleSlashCommand (C:\Users\hamit\OneDrive\Belgeler\GitHub\stade-discord-bot-v14\src\handlers\command.js:140:7)
at async module.exports (C:\Users\hamit\OneDrive\Belgeler\GitHub\stade-discord-bot-v14\src\events\interactions\interactionCreate.js:18:5)
}
}
4 Replies
hmm
i’ll look into this
update lavaclient and the lavasearch plugin
I updated Lavaclient and it works, but I installed plugin-lavasearch. I get this error.
Error: Cannot find module 'effect/BigInt'
Require stack:
- C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\node_modules\@effect\schema\dist\cjs\Schema.js
- C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\node_modules\lavaclient\node_modules\lavalink-protocol\dist\api.js
- C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\node_modules\lavaclient\node_modules\lavalink-protocol\dist\index.js
- C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\node_modules\lavaclient\node_modules\lavalink-ws-client\dist\client.js
- C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\node_modules\lavaclient\node_modules\lavalink-ws-client\dist\index.js
- C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\node_modules\lavaclient\dist\cluster\client.js
- C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\node_modules\lavaclient\dist\cluster\index.js
- C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\node_modules\lavaclient\dist\index.js
- C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\src\handlers\lavaclient.js
- C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\src\structures\BotClient.js
- C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\src\structures\index.js
- C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\bot.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
at Module._resolveFilename (C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\node_modules\module-alias\index.js:49:29)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\node_modules\@effect\schema\dist\cjs\Schema.js:149:66)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\hamit\\OneDrive\\Documents\\GitHub\\stade-discord-bot-v14\\node_modules\\@effect\\schema\\dist\\cjs\\Schema.js',
'C:\\Users\\hamit\\OneDrive\\Documents\\GitHub\\stade-discord-bot-v14\\node_modules\\lavaclient\\node_modules\\lavalink-protocol\\dist\\api.js' ,
'C:\\Users\\hamit\\OneDrive\\Documents\\GitHub\\stade-discord-bot-v14\\node_modules\\lavaclient\\node_modules\\lavalink-protocol\\dist\\index.js' ,
'C:\\Users\\hamit\\OneDrive\\Documents\\GitHub\\stade-discord-bot-v14\\node_modules\\lavaclient\\node_modules\\lavalink-ws-client\\dist\\client. js',
'C:\\Users\\hamit\\OneDrive\\Documents\\GitHub\\stade-discord-bot-v14\\node_modules\\lavaclient\\node_modules\\lavalink-ws-client\\dist\\index. js',
'C:\\Users\\hamit\\OneDrive\\Documents\\GitHub\\stade-discord-bot-v14\\node_modules\\lavaclient\\dist\\cluster\\client.js',
'C:\\Users\\hamit\\OneDrive\\Documents\\GitHub\\stade-discord-bot-v14\\node_modules\\lavaclient\\dist\\cluster\\index.js',
'C:\\Users\\hamit\\OneDrive\\Documents\\GitHub\\stade-discord-bot-v14\\node_modules\\lavaclient\\dist\\index.js',
'C:\\Users\\hamit\\OneDrive\\Documents\\GitHub\\stade-discord-bot-v14\\src\\handlers\\lavaclient.js',
'C:\\Users\\hamit\\OneDrive\\Documents\\GitHub\\stade-discord-bot-v14\\src\\structures\\BotClient.js',
'C:\\Users\\hamit\\OneDrive\\Documents\\GitHub\\stade-discord-bot-v14\\src\\structures\\index.js',
'C:\\Users\\hamit\\OneDrive\\Documents\\GitHub\\stade-discord-bot-v14\\bot.js'
]
}
Error: Cannot find module 'effect/BigInt'
Require stack:
- C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\node_modules\@effect\schema\dist\cjs\Schema.js
- C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\node_modules\lavaclient\node_modules\lavalink-protocol\dist\api.js
- C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\node_modules\lavaclient\node_modules\lavalink-protocol\dist\index.js
- C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\node_modules\lavaclient\node_modules\lavalink-ws-client\dist\client.js
- C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\node_modules\lavaclient\node_modules\lavalink-ws-client\dist\index.js
- C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\node_modules\lavaclient\dist\cluster\client.js
- C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\node_modules\lavaclient\dist\cluster\index.js
- C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\node_modules\lavaclient\dist\index.js
- C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\src\handlers\lavaclient.js
- C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\src\structures\BotClient.js
- C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\src\structures\index.js
- C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\bot.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
at Module._resolveFilename (C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\node_modules\module-alias\index.js:49:29)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (C:\Users\hamit\OneDrive\Documents\GitHub\stade-discord-bot-v14\node_modules\@effect\schema\dist\cjs\Schema.js:149:66)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\hamit\\OneDrive\\Documents\\GitHub\\stade-discord-bot-v14\\node_modules\\@effect\\schema\\dist\\cjs\\Schema.js',
'C:\\Users\\hamit\\OneDrive\\Documents\\GitHub\\stade-discord-bot-v14\\node_modules\\lavaclient\\node_modules\\lavalink-protocol\\dist\\api.js' ,
'C:\\Users\\hamit\\OneDrive\\Documents\\GitHub\\stade-discord-bot-v14\\node_modules\\lavaclient\\node_modules\\lavalink-protocol\\dist\\index.js' ,
'C:\\Users\\hamit\\OneDrive\\Documents\\GitHub\\stade-discord-bot-v14\\node_modules\\lavaclient\\node_modules\\lavalink-ws-client\\dist\\client. js',
'C:\\Users\\hamit\\OneDrive\\Documents\\GitHub\\stade-discord-bot-v14\\node_modules\\lavaclient\\node_modules\\lavalink-ws-client\\dist\\index. js',
'C:\\Users\\hamit\\OneDrive\\Documents\\GitHub\\stade-discord-bot-v14\\node_modules\\lavaclient\\dist\\cluster\\client.js',
'C:\\Users\\hamit\\OneDrive\\Documents\\GitHub\\stade-discord-bot-v14\\node_modules\\lavaclient\\dist\\cluster\\index.js',
'C:\\Users\\hamit\\OneDrive\\Documents\\GitHub\\stade-discord-bot-v14\\node_modules\\lavaclient\\dist\\index.js',
'C:\\Users\\hamit\\OneDrive\\Documents\\GitHub\\stade-discord-bot-v14\\src\\handlers\\lavaclient.js',
'C:\\Users\\hamit\\OneDrive\\Documents\\GitHub\\stade-discord-bot-v14\\src\\structures\\BotClient.js',
'C:\\Users\\hamit\\OneDrive\\Documents\\GitHub\\stade-discord-bot-v14\\src\\structures\\index.js',
'C:\\Users\\hamit\\OneDrive\\Documents\\GitHub\\stade-discord-bot-v14\\bot.js'
]
}
i genuinely forgot about this message
errmmmmmm
I am currently using lavasrc. So there is no problem, but when I use lavasearch plugin I get this error.