Lavalink server is not connecting properly
Code:
Then it keeps saying connected and reconnecting. When attempting to play it throws an error:
With other lavalinks the connection just times out:
Using the latest version of Moonlink.js from NPM
17 Replies
continuing-cyanOP•2y ago
hosting on aws ubuntu ec2 instance
Error in the rest is that it was not connected to the lavalink
Is lavalink's endpoint http or https?
continuing-cyanOP•2y ago
HTTPS
GG @paninizer, you just advanced to level 3!
continuing-cyanOP•2y ago
Or it should be
Then change the secure parameter to true
continuing-cyanOP•2y ago
It worked like 5 days ago
Then the error started showing up
Secure is type for it to distinguish if ws and http is secure it will add s "wss" and "https"
continuing-cyanOP•2y ago
I'll try secured
But the hosting list did not have the secure on true
And none of any other lavalink I tried work, secure or not
It either times out or constantly switches between connected and reconnecting (but the nodes are null)
adverse-sapphire•2y ago
Same problem is with your own hosted lavalink servers
im getting same issue using "erela.js"
Found the issue
For erela in Node.js file u need to add ready case
inorder for it to work
i guess same goes with moonlink
since they are kinda close
continuing-cyanOP•2y ago
its just backend lavalink server compatibility with client ig
adverse-sapphire•2y ago
Not exactly
Well yes its 50/50
Both are the issues
With lavalink the issue is that, outdated version doesnt use all new changes within youtube API
if i remember right
As in for "moonlink"(maybe) and erela, which im using, is that I had to change erela.js(Node.js) file by adding op "ready", which will get rid of "Node "caffeine.srv.berrybyte" encountered an error: Unexpected op "ready" with data: [object Object]"
GG @Cloudz ジ, you just advanced to level 1!
adverse-sapphire•2y ago
Then I removed client.on("raw", d => client.manager.updateVoiceState(d)) and now it works fine
and no the lewd hutao domain is not https
its http
secure: false i tis
it is
forgot to mention that
continuing-cyanOP•2y ago
So I switched around some lavalinks and it worked. Prob just compatibility issues since I didn't change anything else
adverse-sapphire•2y ago
Nice, good luck on deving.
continuing-cyanOP•2y ago