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
RonaldZav
RonaldZav20d 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
RonaldZav20d ago
play command:
1Lucas1.apk
1Lucas1.apk19d ago
I'm going to replace the internal socket module with ws, I think it can fix your error
Piedra ~
Piedra ~19d 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
foreign-sapphire
foreign-sapphire18d ago
Please update the package and try again
1Lucas1.apk
1Lucas1.apk18d ago
GitHub
GitHub - lavalink-devs/youtube-source: A rewritten YouTube source m...
A rewritten YouTube source manager for Lavaplayer. - lavalink-devs/youtube-source
foreign-sapphire
foreign-sapphire18d ago
Crwdo
1Lucas1.apk
1Lucas1.apk18d ago
sim kkk foi o que achei naqueles chats
foreign-sapphire
foreign-sapphire18d ago
Imagina o quão lento isso deve ser quando um dos clientes não ir
1Lucas1.apk
1Lucas1.apk18d ago
já reportaram que a moonlink tava mandando encoded null
foreign-sapphire
foreign-sapphire18d ago
Mas isso não tem relação 👀
1Lucas1.apk
1Lucas1.apk18d ago
foi o que linkaram
foreign-sapphire
foreign-sapphire18d ago
🤷‍♂️ Deve ser um bug do Moonlink Apesar que o povo do LL faz as coisas tão bem feito né..
1Lucas1.apk
1Lucas1.apk18d ago
foreign-sapphire
foreign-sapphire18d ago
Eu não consigo abrir url do discord KKKKKKKKKKKKK LavaLink client -> NodeLink client
1Lucas1.apk
1Lucas1.apk18d ago
porque tou usando o nodelink e até agora nenhum erro
1Lucas1.apk
1Lucas1.apk18d ago
No description
foreign-sapphire
foreign-sapphire18d 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.apk18d 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
foreign-sapphire
foreign-sapphire18d ago
KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
RonaldZav
RonaldZav18d ago
There is no longer any error on the console, but the music does not play
No description
foreign-sapphire
foreign-sapphire18d ago
Node logs please
RonaldZav
RonaldZav18d ago
where do I find the logs?
RonaldZav
RonaldZav18d ago
this?
No description
foreign-sapphire
foreign-sapphire18d ago
Oh, you don't have the node logs, yeah?
foreign-sapphire
foreign-sapphire18d 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
RonaldZav18d ago
I will install it in a moment and let you know if it works for me.
diverse-rose
diverse-rose18d ago
GG @RonaldZav, you just advanced to level 1!
foreign-sapphire
foreign-sapphire18d 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
RonaldZav18d ago
It worked for me, thanks
foreign-sapphire
foreign-sapphire18d ago
Np
Want results from more Discord servers?
Add your server
More Posts
SyntaxError: Unterminated string in JSON at position 5788SyntaxError: Unterminated string in JSON at position 5788 at JSON.parse (<anonymous>) at Moo<MoonlinkPlayer>.skip() bugWhen using the skip method, the <MoonlinkPlayer>.playing is returned to falseMoonlinkPlayer shuffled property is not defineddocs: https://moonlink.js.org/classes/moonlinkplayer#shuffled github: https://github.com/Ecliptia/mLavalink problem or Module problem (Need Help)Hello, I'm trying to develop a musicbot using the moonlink.js module, and I wonder if it's a module Cannot read properties of undefined (reading 'shard')client.moon = new MoonlinkManager( [ { host: "localhost", port: JSON Parse errors while sending the payloadbefore this it was posting errors with this token `♥` in JSON, so i tried sanitizing it but resultederror when starting / connecting to node```TypeError: require(...).setDefaultAutoSelectFamily is not a function at new MoonlinkWebSocketError when searching for a songHey there! Im getting this very weird error when trying to play a simple song, I copied the example error(node:6856) [DEP0128] DeprecationWarning: Invalid 'main' field in 'G:\k\node_modules\moonlink.js\disthere is code in the package that console.log(queue)this code is so annoyingEror when playing song with deezerMusic not playing but connectingHey there! My music doesn't play when connecting. I think it's because I do not have a raw event. I'In debug, connected is falseThe bot is connected but the music is not playing, I saw the debug and found thisnão tem skip nas docs e fica dando erro de Node mesmo conectandoe issomodule errorsometimes this error pops up while using play comand