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
RonaldZavOP8mo 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
RonaldZavOP8mo ago
play command:
1Lucas1.apk
1Lucas1.apk8mo ago
I'm going to replace the internal socket module with ws, I think it can fix your error
Piedra ~
Piedra ~8mo 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
rival-black
rival-black8mo ago
Please update the package and try again
1Lucas1.apk
1Lucas1.apk8mo ago
GitHub
GitHub - lavalink-devs/youtube-source: A rewritten YouTube source m...
A rewritten YouTube source manager for Lavaplayer. - lavalink-devs/youtube-source
rival-black
rival-black8mo ago
Crwdo
1Lucas1.apk
1Lucas1.apk8mo ago
sim kkk foi o que achei naqueles chats
rival-black
rival-black8mo ago
Imagina o quão lento isso deve ser quando um dos clientes não ir
1Lucas1.apk
1Lucas1.apk8mo ago
já reportaram que a moonlink tava mandando encoded null
rival-black
rival-black8mo ago
Mas isso não tem relação 👀
1Lucas1.apk
1Lucas1.apk8mo ago
foi o que linkaram
rival-black
rival-black8mo ago
🤷‍♂️ Deve ser um bug do Moonlink Apesar que o povo do LL faz as coisas tão bem feito né..
1Lucas1.apk
1Lucas1.apk8mo ago
rival-black
rival-black8mo ago
Eu não consigo abrir url do discord KKKKKKKKKKKKK LavaLink client -> NodeLink client
1Lucas1.apk
1Lucas1.apk8mo ago
porque tou usando o nodelink e até agora nenhum erro
1Lucas1.apk
1Lucas1.apk8mo ago
No description
rival-black
rival-black8mo 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.apk8mo 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
rival-black
rival-black8mo ago
KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
RonaldZav
RonaldZavOP8mo ago
There is no longer any error on the console, but the music does not play
No description
rival-black
rival-black8mo ago
Node logs please
RonaldZav
RonaldZavOP8mo ago
where do I find the logs?
RonaldZav
RonaldZavOP8mo ago
this?
No description
rival-black
rival-black8mo ago
Oh, you don't have the node logs, yeah?
rival-black
rival-black8mo 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
RonaldZavOP8mo ago
I will install it in a moment and let you know if it works for me.
MEE6
MEE68mo ago
GG @RonaldZav, you just advanced to level 1!
rival-black
rival-black8mo 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
RonaldZavOP8mo ago
It worked for me, thanks
rival-black
rival-black8mo ago
Np
Want results from more Discord servers?
Add your server