SyntaxError: Unexpected end of JSON input

When I try to play music this error happens. The bot connects to the voice channel but nothing sounds. Error:
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at MoonlinkNode.message (C:\Users\ronal\Documents\GitHub\mahiro\node_modules\moonlink.js\dist
at MoonlinkWebSocket.emit (node:events:517:28)
at Socket.<anonymous> (C:\Users\ronal\Documents\GitHub\mahiro\node_modules\moonlink.js\dist\s
at Socket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:368:12)
at readableAddChunk (node:internal/streams/readable:341:9)
at Readable.push (node:internal/streams/readable:278:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23) Promise {
<rejected>
Emitted data that has not been implemented; opcode: 3
Emitted data that has not been implemented; opcode: 5
Emitted data that has not been implemented; opcode: 5
Emitted data that has not been implemented; opcode: 14
Emitted data that has not been implemented; opcode: 5
Emitted data that has not been implemented; opcode: 4
Emitted data that has not been implemented; opcode: 9
Emitted data that has not been implemented; opcode: 4
Emitted data that has not been implemented; opcode: 3
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at MoonlinkNode.message (C:\Users\ronal\Documents\GitHub\mahiro\node_modules\moonlink.js\dist
at MoonlinkWebSocket.emit (node:events:517:28)
at Socket.<anonymous> (C:\Users\ronal\Documents\GitHub\mahiro\node_modules\moonlink.js\dist\s
at Socket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:368:12)
at readableAddChunk (node:internal/streams/readable:341:9)
at Readable.push (node:internal/streams/readable:278:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23) Promise {
<rejected>
Emitted data that has not been implemented; opcode: 3
Emitted data that has not been implemented; opcode: 5
Emitted data that has not been implemented; opcode: 5
Emitted data that has not been implemented; opcode: 14
Emitted data that has not been implemented; opcode: 5
Emitted data that has not been implemented; opcode: 4
Emitted data that has not been implemented; opcode: 9
Emitted data that has not been implemented; opcode: 4
Emitted data that has not been implemented; opcode: 3
31 Replies
RonaldZav
RonaldZavOP9mo ago
Complete Error: Error:
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at MoonlinkNode.message (C:\Users\ronal\Documents\GitHub\mahiro\node_modules\moonlink.js\dist
at MoonlinkWebSocket.emit (node:events:517:28)
at Socket.<anonymous> (C:\Users\ronal\Documents\GitHub\mahiro\node_modules\moonlink.js\dist\s
at Socket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:368:12)
at readableAddChunk (node:internal/streams/readable:341:9)
at Readable.push (node:internal/streams/readable:278:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23) Promise {
<rejected> SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at MoonlinkNode.message (C:\Users\ronal\Documents\GitHub\mahiro\node_modules\moonlink.js\di
at MoonlinkWebSocket.emit (node:events:517:28)
at Socket.<anonymous> (C:\Users\ronal\Documents\GitHub\mahiro\node_modules\moonlink.js\dist
at Socket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:368:12)
at readableAddChunk (node:internal/streams/readable:341:9)
at Readable.push (node:internal/streams/readable:278:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
}

Emitted data that has not been implemented; opcode: 3
Emitted data that has not been implemented; opcode: 5
Emitted data that has not been implemented; opcode: 5
Emitted data that has not been implemented; opcode: 14
Emitted data that has not been implemented; opcode: 5
Emitted data that has not been implemented; opcode: 4
Emitted data that has not been implemented; opcode: 9
Emitted data that has not been implemented; opcode: 4
Emitted data that has not been implemented; opcode: 3
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at MoonlinkNode.message (C:\Users\ronal\Documents\GitHub\mahiro\node_modules\moonlink.js\dist
at MoonlinkWebSocket.emit (node:events:517:28)
at Socket.<anonymous> (C:\Users\ronal\Documents\GitHub\mahiro\node_modules\moonlink.js\dist\s
at Socket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:368:12)
at readableAddChunk (node:internal/streams/readable:341:9)
at Readable.push (node:internal/streams/readable:278:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23) Promise {
<rejected> SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at MoonlinkNode.message (C:\Users\ronal\Documents\GitHub\mahiro\node_modules\moonlink.js\di
at MoonlinkWebSocket.emit (node:events:517:28)
at Socket.<anonymous> (C:\Users\ronal\Documents\GitHub\mahiro\node_modules\moonlink.js\dist
at Socket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:368:12)
at readableAddChunk (node:internal/streams/readable:341:9)
at Readable.push (node:internal/streams/readable:278:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
}

Emitted data that has not been implemented; opcode: 3
Emitted data that has not been implemented; opcode: 5
Emitted data that has not been implemented; opcode: 5
Emitted data that has not been implemented; opcode: 14
Emitted data that has not been implemented; opcode: 5
Emitted data that has not been implemented; opcode: 4
Emitted data that has not been implemented; opcode: 9
Emitted data that has not been implemented; opcode: 4
Emitted data that has not been implemented; opcode: 3
RonaldZav
RonaldZavOP9mo ago
play command:
1Lucas1.apk
1Lucas1.apk9mo ago
I'm going to replace the internal socket module with ws, I think it can fix your error
Piedra ~
Piedra ~9mo ago
I have the same problem
[antiCrash] :: Unhandled Rejection/Catch
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at MoonlinkNode.message (C:\Users\ahmet\Documents\GitHub\pbot-rewrite-2022\node_modules\moonlink.js\dist\src\@Entities\MoonlinkNode.js:139:28)
at MoonlinkWebSocket.emit (node:events:513:28)
at Socket.<anonymous> (C:\Users\ahmet\Documents\GitHub\pbot-rewrite-2022\node_modules\moonlink.js\dist\src\@Services\MoonlinkWebSocket.js:120:34)
at Socket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Readable.push (node:internal/streams/readable:234:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23) Promise {
<rejected> SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at MoonlinkNode.message (C:\Users\ahmet\Documents\GitHub\pbot-rewrite-2022\node_modules\moonlink.js\dist\src\@Entities\MoonlinkNode.js:139:28)
at MoonlinkWebSocket.emit (node:events:513:28)
at Socket.<anonymous> (C:\Users\ahmet\Documents\GitHub\pbot-rewrite-2022\node_modules\moonlink.js\dist\src\@Services\MoonlinkWebSocket.js:120:34)
at Socket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Readable.push (node:internal/streams/readable:234:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
}
Emitted data that has not been implemented; opcode: 9
Emitted data that has not been implemented; opcode: 5
Emitted data that has not been implemented; opcode: 7
Emitted data that has not been implemented; opcode: 3
Emitted data that has not been implemented; opcode: 14
Emitted data that has not been implemented; opcode: 5
[antiCrash] :: Unhandled Rejection/Catch
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at MoonlinkNode.message (C:\Users\ahmet\Documents\GitHub\pbot-rewrite-2022\node_modules\moonlink.js\dist\src\@Entities\MoonlinkNode.js:139:28)
at MoonlinkWebSocket.emit (node:events:513:28)
at Socket.<anonymous> (C:\Users\ahmet\Documents\GitHub\pbot-rewrite-2022\node_modules\moonlink.js\dist\src\@Services\MoonlinkWebSocket.js:120:34)
at Socket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Readable.push (node:internal/streams/readable:234:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23) Promise {
<rejected> SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at MoonlinkNode.message (C:\Users\ahmet\Documents\GitHub\pbot-rewrite-2022\node_modules\moonlink.js\dist\src\@Entities\MoonlinkNode.js:139:28)
at MoonlinkWebSocket.emit (node:events:513:28)
at Socket.<anonymous> (C:\Users\ahmet\Documents\GitHub\pbot-rewrite-2022\node_modules\moonlink.js\dist\src\@Services\MoonlinkWebSocket.js:120:34)
at Socket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Readable.push (node:internal/streams/readable:234:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
}
Emitted data that has not been implemented; opcode: 9
Emitted data that has not been implemented; opcode: 5
Emitted data that has not been implemented; opcode: 7
Emitted data that has not been implemented; opcode: 3
Emitted data that has not been implemented; opcode: 14
Emitted data that has not been implemented; opcode: 5
xenophobic-harlequin
xenophobic-harlequin9mo ago
Please update the package and try again
1Lucas1.apk
1Lucas1.apk9mo ago
GitHub
GitHub - lavalink-devs/youtube-source: A rewritten YouTube source m...
A rewritten YouTube source manager for Lavaplayer. - lavalink-devs/youtube-source
xenophobic-harlequin
xenophobic-harlequin9mo ago
Crwdo
1Lucas1.apk
1Lucas1.apk9mo ago
sim kkk foi o que achei naqueles chats
xenophobic-harlequin
xenophobic-harlequin9mo ago
Imagina o quão lento isso deve ser quando um dos clientes não ir
1Lucas1.apk
1Lucas1.apk9mo ago
já reportaram que a moonlink tava mandando encoded null
xenophobic-harlequin
xenophobic-harlequin9mo ago
Mas isso não tem relação 👀
1Lucas1.apk
1Lucas1.apk9mo ago
foi o que linkaram
xenophobic-harlequin
xenophobic-harlequin9mo ago
🤷‍♂️ Deve ser um bug do Moonlink Apesar que o povo do LL faz as coisas tão bem feito né..
1Lucas1.apk
1Lucas1.apk9mo ago
xenophobic-harlequin
xenophobic-harlequin9mo ago
Eu não consigo abrir url do discord KKKKKKKKKKKKK LavaLink client -> NodeLink client
1Lucas1.apk
1Lucas1.apk9mo ago
porque tou usando o nodelink e até agora nenhum erro
1Lucas1.apk
1Lucas1.apk9mo ago
No description
xenophobic-harlequin
xenophobic-harlequin9mo ago
Porque os problemas do NL foram ajeitados a meio século Eles são lentos Ele não deve estar lidando com o type error E esse cara ta usando NL hoje em dia KKKKK
1Lucas1.apk
1Lucas1.apk9mo ago
eu vendo no vsc nenhum erro e no rich presence dizendo que tem 14 ele tá prevendo o futuro? deve ser feito por arabes
xenophobic-harlequin
xenophobic-harlequin9mo ago
KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
RonaldZav
RonaldZavOP9mo ago
There is no longer any error on the console, but the music does not play
No description
xenophobic-harlequin
xenophobic-harlequin9mo ago
Node logs please
RonaldZav
RonaldZavOP9mo ago
where do I find the logs?
RonaldZav
RonaldZavOP9mo ago
this?
No description
xenophobic-harlequin
xenophobic-harlequin9mo ago
Oh, you don't have the node logs, yeah?
xenophobic-harlequin
xenophobic-harlequin9mo ago
So, I suppose it's a LL node that doesn't have youtube-source plugin It's recommendable for you to use NodeLink which doesn't have some LL bugs on YT source
GitHub
GitHub - PerformanC/NodeLink: Performant LavaLink alternative writt...
Performant LavaLink alternative written with Node.Js - PerformanC/NodeLink
RonaldZav
RonaldZavOP9mo ago
I will install it in a moment and let you know if it works for me.
MEE6
MEE69mo ago
GG @RonaldZav, you just advanced to level 1!
xenophobic-harlequin
xenophobic-harlequin9mo ago
Sweet Btw, comment out node-libsamplerate in src/voice/utils.js import and remove from package.json as it's doesn't work well yet for Windows (Or just install from the last GH release)
RonaldZav
RonaldZavOP9mo ago
It worked for me, thanks
xenophobic-harlequin
xenophobic-harlequin9mo ago
Np

Did you find this page helpful?