Cannot read properties of undefined (reading 'encoded')

Hi, I think there is a problem with this library. Since last week, I have been getting intermittent errors saying that encoded values ​​cannot be read.
TypeError: Cannot read properties of undefined (reading 'encoded')
at Node.message (/home/dodam/dbts/node_modules/moonlink.js/dist/src/entities/Node.js:140:246)
at WebSocket.emit (node:events:519:28)
at Receiver.receiverOnMessage (/home/dodam/dbts/node_modules/ws/lib/websocket.js:1220:20)
at Receiver.emit (node:events:519:28)
at Receiver.dataMessage (/home/dodam/dbts/node_modules/ws/lib/receiver.js:596:14)
at Receiver.getData (/home/dodam/dbts/node_modules/ws/lib/receiver.js:496:10)
at Receiver.startLoop (/home/dodam/dbts/node_modules/ws/lib/receiver.js:167:16)
at Receiver._write (/home/dodam/dbts/node_modules/ws/lib/receiver.js:94:10)
at writeOrBuffer (node:internal/streams/writable:570:12)
at _write (node:internal/streams/writable:499:10)
TypeError: Cannot read properties of undefined (reading 'encoded')
at Node.message (/home/dodam/dbts/node_modules/moonlink.js/dist/src/entities/Node.js:140:246)
at WebSocket.emit (node:events:519:28)
at Receiver.receiverOnMessage (/home/dodam/dbts/node_modules/ws/lib/websocket.js:1220:20)
at Receiver.emit (node:events:519:28)
at Receiver.dataMessage (/home/dodam/dbts/node_modules/ws/lib/receiver.js:596:14)
at Receiver.getData (/home/dodam/dbts/node_modules/ws/lib/receiver.js:496:10)
at Receiver.startLoop (/home/dodam/dbts/node_modules/ws/lib/receiver.js:167:16)
at Receiver._write (/home/dodam/dbts/node_modules/ws/lib/receiver.js:94:10)
at writeOrBuffer (node:internal/streams/writable:570:12)
at _write (node:internal/streams/writable:499:10)
All of lavalink, youtube-plugin, moonlink.js is latest version.
5 Replies
1Lucas1.apk
1Lucas1.apk•2w ago
Is there a step by step guide to make this error happen?
dodam
dodamOP•6d ago
I don't know when and why this error happens so I'll do some test and report to you someday. sorry for delayed response
ComicallyBad
ComicallyBad•5d ago
seems it would be whenever a track ends. But not sure what would cause this
1Lucas1.apk
1Lucas1.apk•5d ago
I think I understood the problem just by looking at the line. Before requesting another track, it reuses some encoded information from the current track that will eventually be exchanged for a new one. But player.current.encoded arrives undefined I'll do something to fix this problem :)
dodam
dodamOP•5d ago
thanks