Error: Unexpected server response: 200

When using lavaclient via deno's npm support (I was using lavadeno but that isn't updated to lavalink 4) with a lavalink 4 node I get the following error:
Error: Error: Unexpected server response: 200
at Connection._onerror (file:///home/blocks/.cache/deno/npm/registry.npmjs.org/lavaclient/4.1.1/dist/lib/node/Connection.js:145:33)
at callListener (file:///home/blocks/.cache/deno/npm/registry.npmjs.org/ws/8.16.0/lib/event-target.js:290:14)
at WebSocket.onError (file:///home/blocks/.cache/deno/npm/registry.npmjs.org/ws/8.16.0/lib/event-target.js:230:9)
at WebSocket.emit (ext:deno_node/_events.mjs:383:28)
at emitErrorAndClose (file:///home/blocks/.cache/deno/npm/registry.npmjs.org/ws/8.16.0/lib/websocket.js:1033:13)
at processTicksAndRejections (ext:deno_node/_next_tick.ts:33:15)
at runNextTicks (ext:deno_node/_next_tick.ts:71:3)
at eventLoopTick (ext:core/01_core.js:160:21)
Error: Error: Unexpected server response: 200
at Connection._onerror (file:///home/blocks/.cache/deno/npm/registry.npmjs.org/lavaclient/4.1.1/dist/lib/node/Connection.js:145:33)
at callListener (file:///home/blocks/.cache/deno/npm/registry.npmjs.org/ws/8.16.0/lib/event-target.js:290:14)
at WebSocket.onError (file:///home/blocks/.cache/deno/npm/registry.npmjs.org/ws/8.16.0/lib/event-target.js:230:9)
at WebSocket.emit (ext:deno_node/_events.mjs:383:28)
at emitErrorAndClose (file:///home/blocks/.cache/deno/npm/registry.npmjs.org/ws/8.16.0/lib/websocket.js:1033:13)
at processTicksAndRejections (ext:deno_node/_next_tick.ts:33:15)
at runNextTicks (ext:deno_node/_next_tick.ts:71:3)
at eventLoopTick (ext:core/01_core.js:160:21)
V
viztea69d ago
You need to use lavaclient v5 i've been lazy and keep putting off releasing it to @latest
B
Bloxs69d ago
ah
V
viztea69d ago
npm
lavaclient
A simple, easy-to-use, and flexible lavalink client for node.js. Latest version: 4.1.1, last published: 2 years ago. Start using lavaclient in your project by running npm i lavaclient. There are no other projects in the npm registry using lavaclient.
V
viztea69d ago
despite the semver name thingy, it's not really alpha but it is a rewrite so ¯\_(ツ)_/¯ check pinned thread
B
Bloxs69d ago
this is fine, not like my code was good to begin with
No description
V
viztea69d ago
What is the status around using NPM packages in Deno? i'm personally against it but if there's no reason to keep a dedicated port then I'd rather not keep it
B
Bloxs69d ago
It's preferred to use native deno packages but the support has gotten good enough to where most packages work
V
viztea69d ago
hmm, afaict native would only really consist of switching to the WebSocket global node should be getting that soon
B
Bloxs69d ago
for new projects using smth like dnt would probably be the play but I don't know how viable that would be as I've never tried it
V
viztea69d ago
mmm
B
Bloxs69d ago
am I doing something wrong here? #Project Discussion says you can just do player.on but types say otherwise
No description
V
viztea69d ago
i think it's a dev dependency issue :AHHHH: maybe bruhhhhhhhhhhhh let me just release it typed-emitter is a required dep but it's listed as dev only, idk if there's a way for you to include it somehow working on releasing all the packages rn
V
viztea69d ago
npm
lavaclient
A simple, easy-to-use, and flexible lavalink client for node.js. Latest version: 4.1.1, last published: 2 years ago. Start using lavaclient in your project by running npm i lavaclient. There are no other projects in the npm registry using lavaclient.
B
Bloxs69d ago
not sure if this is like a deno npm compat issue or not
No description
B
Bloxs69d ago
I presume it most likely is because of the fact types say otherwise
V
viztea69d ago
prolly mmm, might be an ESM thing idk
Want results from more Discord servers?
Add your server
More Posts
play localfile using lavaclientI want to ask that is it possible to play localfile using lavaclient (since my bot already integrateSearch Exception: Unknown file format.Im using "@lavaclient/spotify" and using this as configuration ```javascript client: { id: proHaving an issue with my own Pterodactyl Egg but don't know a fixIm using my own lavalink server and when i try making a request is empty and 404 trying to do myip:2Play music from other sourceshello I would like to know if there is a way to play music from other sources that are not in the lReferenceError: sendWithDiscordLib is not definedI am getting this error: ```Uncaught Promise Rejection ReferenceError: sendWithDiscordLib is not defTrying to make a commandcan someone tell me how to make a simple autoplay command using lavaclient?Project DiscussionA thread for discussing #lavaclient & related stufffError: Unexpected server response: 404Hey I have downloaded the newest java to be able to use lavasrc but since then lavaclient isn't workNodesHello. Iam new in lavaclient and I propably dont really undersnatd one of important parts of the libnodeTrackStart and nodeQueueFinish is not assignable to parameter of type 'keyof ClusterEvents'.Hello. Iam developing discord music bot and I have problem with handler.the bot keeps disconnecting while playingif I play a song after a while it get skipped or the bot disconnect in the middle of the song, even can you set the volume by default.when you create player for the first time using /play command for example is there's anyway to set tDiscussion ThreadsHello!Project DiscussionA thread for discussing KyuTranslationsForum discussing Kyu TranslationsDifference between pause(false) and resume()What's the difference between pause(false) and resume()?Any way to reconnect when node restartsI'm currently using the reconnect: { basic: whatever } property in my nodes. While this works whenevtrackEnd event isn't fired after bot is dc'd and rejoinsFor some reason the trackEnd event isn't fired in lavadeno if the bot was manually disconnected (by