#Error 400 Bad Request

1 messages ยท Page 1 of 1 (latest)

sour jewelBOT
#

Please make sure to read and follow the post guidelines before opening your post.
This will help you get the best possible answers to your questions while minimizing the questions we have to ask you.
Thanks!

hot tinsel
#

First of all I send you application.xml

#

One thing at a time, eh...

#

Here is the file obviously I removed the refresh token now just to send it to you but in my host it is present. Let me know if there is something wrong here ...

#

So I can understand where the problem is and how to solve it if you can help me..

hot tinsel
# hot tinsel

This is what happens with every attempt at reproduction...

sour jewelBOT
#

Please make sure to read and follow the post guidelines before opening your post.
This will help you get the best possible answers to your questions while minimizing the questions we have to ask you.
Thanks!

wet geyser
#

again...

hot tinsel
#

ok let's leave it alone... don't help me.I am I already understood. you don't want.

#

Thank you for your help.

wet geyser
#

The point of this channel is to help you, we can't help you if you don't provide full information. The guidelines tell you what information you need to supply.

hot tinsel
# wet geyser The point of this channel is to help you, we can't help you if you don't provide...

This is the only information I can give you because in the lavalink logs there are no errors but they appear on the bot with that error 400 bad request, as information I explained to you what happens because that is the only problem. and then following the guidelines that you have to send "application.xml" I sent it to you to view it to understand if everything is ok there or if there are problems to solve there. THAT IS ALL! THERE IS NOTHING ELSE ...

hot tinsel
#

Because it's a complex problem I think...

rare parrot
#

The application YML has a example

#

For the logging and level

hot tinsel
#

but in my application.yml the logs are enabled but it doesn't give me any error I explained it before...

#

Why don't you read the whole message...

tranquil lily
#

Ok and where does it say to only send the logs if there are errors?

#

It says enable more detailed logging

#

FULL LAVALINK LOGS

#

If you can't read there is nothing we can help you with

hot tinsel
#

Ok now I'll send you the lavalink logs

hot tinsel
tranquil lily
#

Thats what we have been asking you to do for 3h

hot tinsel
hot tinsel
# hot tinsel

mice I created the DELETE string after the video request by doing /leave with the bot

tranquil lily
#
2024-08-30T19:12:18.370Z  WARN 1 --- [Lavalink] [XNIO-1 task-4] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.http.converter.HttpMessageNotReadableException: Could not read kotlinx.serialization.json.JsonImpl@a3ec05f: Unexpected JSON token at offset 9: Expected start of the object '{', but had '"' instead at path: $.track<EOL>JSON input: {"track":"QAABiQMAQUNocmlzdGlhbiBNYWxsb.....]
#

There you go

#

This is exactly why we ask for the log because you have no clue how errors look like

#

The JSON you send is garbage

#

track is not a string, it's an object

#

See the docs
You can scroll yourself

#

I can also tell from the logs that you use shoukaku
So go ask them

#

Not a lavalink issue

young bolt
#

Are you using kazagumo?

wet geyser
#

because in the lavalink logs there are no errors
lmao dude

#

not everything has to be an error to be useful

#

clearly you don't understand the importance of having debug logs

#

because you can see what the code is doing with what values, hence why it is called "debug", because it helps you to de-bug your code.

#

so yeah no need to get angry at me when it's your problem in thinking that we ask for logs for errors only.

hot tinsel
young bolt
#

Because using shoukaku doesn't give me the issue

hot tinsel
hot tinsel
young bolt
#

My own implementation

hot tinsel
#

I only know lavamusic and wavemusic which are related to shoukaku and they both give me the same problem...

tranquil lily
#

Ask the devs

hot tinsel
#

And I don't know how to fix it since it's a bot problem...

hot tinsel
young bolt
#

Ask wave music devs

hot tinsel
#

Here I wanted to have clarity on the problem but now I understand that it is all a consequence of the bot ...

young bolt
#

You can always do your own tests, like trying shoukaku individually

hot tinsel
#

They are addressing you ...

tranquil lily
#

?

#

I can't click those links

hot tinsel
tranquil lily
#

No the first one takes you to a specific message

hot tinsel
#

oh are you talking about the github link?

tranquil lily
#

The link in the issue which takes you to a SPECIFIC discord message...

hot tinsel
#

brings me here in my post where we are currently talking. LMAO

tranquil lily
#

Oh it's just a channel link

#

Awesome

hot tinsel
#

Yes. xD

tranquil lily
#

Good luck fixing it

hot tinsel
#

Thanks now I'll see about going around a bit

#

mice I highlight the post as solved if you want you can close it

tardy tendon
#

@hot tinsel did you find something I have the same error i am using wave music too

hot tinsel
hot tinsel
rare parrot
hot tinsel
#

Okk

rare parrot
hot tinsel
autumn parcel
#

@hot tinsel

#

yo did you fix that error?

rare parrot
autumn parcel
#

im scared ๐Ÿ˜ญ

autumn parcel
#

oh

autumn parcel
#

so any update caused this?

rare parrot
#

this whole thing is between a open source bot

autumn parcel
autumn parcel
#

๐Ÿ˜น

#

well im trying

#

ima read the whole thing can't blame anyone now

zinc sail
#

If you guys just read the guide that was linked there, and did a code search for playTrack() and copied how it was shown in example it would be fixed

hot tinsel
#

And everything works perfectly for me now.

autumn parcel
#

๐Ÿ˜ญ a lil help here

hot tinsel
#

No part I simply took from lavamusic v4.6.7 in the structure area after doing the startup commands of that version that switches from ts file to js file

#

Or if you want to skip all the confusion go to lavamusic v4.6.7 it all works there I took those structure files because the "wavemusic" v3 version is more convenient for me but if I ever encounter other problems I know which version to go to. I didn't even need that link that "COMMON USAGE" guy/girl sent

autumn parcel
#

oh ๐Ÿ™‚

#

@boreal wedge

boreal wedge
autumn parcel
#

๐Ÿ˜ญ bro

autumn parcel
#

๐Ÿ’€my 2 brain cell's can't handle it

hot tinsel
#

Only now it always gives me the error in the console, but the bot ignores it and even though the logs sometimes show 400 or 404, the music always plays. XD

autumn parcel
#

ENTIRE DUCKING FILE?

autumn parcel
autumn parcel
#

@foggy hatch

#

her e

foggy hatch
#

bruh

autumn parcel
foggy hatch
#

i did

autumn parcel
#

soooooo

young bolt
#

This could simply be solved by reading the code provided, but apparently they don't like to read

zinc sail
#

bro asked gpt when you only need to change playTrack to the linked example kana_what

autumn parcel
#

hey do you really think if they were (including me) knows about that much use a random bot form github? ๐Ÿ˜ญ

zinc sail
#

if you just click the link

autumn parcel
#

@boreal wedge

boreal wedge
autumn parcel
#

which file is that ๐Ÿ˜ญ

autumn parcel
boreal wedge
autumn parcel
#

look at what he says where is that thing man ๐Ÿ˜ญ

boreal wedge
autumn parcel
#

wh

#

doc?

autumn parcel
#

WHERE DO I EDIT IT IN THE BOT FILE DUMBO

#

i am supposed to be the one dumb here man

#

-.-

young bolt
#

Are you using WaveMusic?

#

Go to the Dispatcher there is the playTrack method

#

||You can also search for the method name in your code editor||

boreal wedge
#

Paste the example code in?

young bolt
#

Not copy and paste exactly

boreal wedge
#

Ye thanks

#

Now i cook the bot

young bolt
sweet ore
#

I repeat because many do not seem to understand, there is more support on the wawemusic code, so no need to continue using this code...

chrome gale
sweet ore
#

Why do you want a code that is more support?

chrome gale
#

One message removed from a suspended account.

sweet ore
#

it is abandoned

chrome gale
young bolt
#
- this.player.playTrack({ track: this.current?.encoded });
+ this.player.playTrack({ track: { encoded: this.current?.encoded } }); 
chrome gale
#

One message removed from a suspended account.

chrome gale