Can't create a player because of no available nodes

Hey. Was hoping you could help me figure out why I can't create a player. When attempting to manager.players.create({ ... }), it returns "undefined", and emits the following messages:
(Moonlink.js) - Node > No available nodes
(Moonlink.js) - Player > No available nodes to create a player.
(Moonlink.js) - Node > No available nodes
(Moonlink.js) - Player > No available nodes to create a player.
Before this, I did manager.init(), and, as you can see, it has connected to a Lavalink instance:
Moonlink.js > initialized with clientId(...), ready to go!
Moonlink.js > Version: 4.60.4
Moonlink.js > environment: Node.js; version: v24.3.0
Moonlink.js > Node (default) is ready for attempting to connect.
Moonlink.js > initialized with clientId(...), ready to go!
Moonlink.js > Version: 4.60.4
Moonlink.js > environment: Node.js; version: v24.3.0
Moonlink.js > Node (default) is ready for attempting to connect.
I can also see that Lavalink has established a connection with my bot:
INFO 1 --- [ XNIO-1 task-2] lavalink.server.io.SocketServer : Connection successfully established from Foobar
INFO 1 --- [ XNIO-1 task-2] lavalink.server.io.SocketServer : Connection successfully established from Foobar
Solution:
I theoretically released a fix, version 4.60.18, fixing this, but it seems I hadn't actually updated the v4 branch, only 'dev', but now I've published it correctly.
Jump to solution
16 Replies
1Lucas1.apk
1Lucas1.apk•2w ago
Could you provide me with all the debug logs and all the Lavalink logs before and after, complete.
fløwzy
fløwzyOP•2w ago
Here you go
1Lucas1.apk
1Lucas1.apk•2w ago
I wanted all possible debug logs, it's incomplete.
fløwzy
fløwzyOP•2w ago
Could you elaborate?
1Lucas1.apk
1Lucas1.apk•2w ago
Debugging isn't just about this Moonlink thing; all the logs are necessary to understand the process.
1Lucas1.apk
1Lucas1.apk•2w ago
For example, like this
fløwzy
fløwzyOP•2w ago
Is that something I can listen to like with the "debug" event you are emitting or is this something you want me to add and then send those logs?
1Lucas1.apk
1Lucas1.apk•2w ago
So it's missing then, in this case are you using Bun or Deno?
fløwzy
fløwzyOP•2w ago
Bun
1Lucas1.apk
1Lucas1.apk•2w ago
test the dev version for me: npm install git+https://github.com/Ecliptia/moonlink.js.git#dev
GitHub
GitHub - Ecliptia/moonlink.js: MoonLink.js is a simple package for ...
MoonLink.js is a simple package for lavalink client, perfect for you to create your discord bot with songs, and very simple and easy to use. - GitHub - Ecliptia/moonlink.js: MoonLink.js is a simpl...
fløwzy
fløwzyOP•2w ago
Yeah, this version works, it seems
MEE6
MEE6•2w ago
GG @fløwzy, you just advanced to level 1!
fløwzy
fløwzyOP•2w ago
So it's a Bun thing?
Solution
1Lucas1.apk
1Lucas1.apk•2w ago
I theoretically released a fix, version 4.60.18, fixing this, but it seems I hadn't actually updated the v4 branch, only 'dev', but now I've published it correctly.
fløwzy
fløwzyOP•2w ago
Ahh. Okay. Thanks, man 👍

Did you find this page helpful?