#Error 400 Bad Request
1 messages ยท Page 1 of 1 (latest)
Yes I read everything calmly
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..
This is what happens with every attempt at reproduction...
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!
again...
ok let's leave it alone... don't help me.I am I already understood. you don't want.
Thank you for your help.
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.
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 ...
Enable the debug logs
And how do I activate them... never done it...
Because it's a complex problem I think...
The application YML has a example
For the logging and level
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...
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
Ok now I'll send you the lavalink logs
This is the bot logs.
Thats what we have been asking you to do for 3h
mice I created the DELETE string after the video request by doing /leave with the bot
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
Are you using kazagumo?
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.
No shoukaku
Because using shoukaku doesn't give me the issue
What version do you use? I use WaveMusic based shoukaku v3
LavaMusic by shoukaku right?
Ah ... ok ...
I only know lavamusic and wavemusic which are related to shoukaku and they both give me the same problem...
As I said
Ask the devs
And I don't know how to fix it since it's a bot problem...
Yes, I made him a report today on github in his topics
Ask wave music devs
Here I wanted to have clarity on the problem but now I understand that it is all a consequence of the bot ...
You can always do your own tests, like trying shoukaku individually
These are two links that take me back to your discord channel (this one here)
No the first one takes you to a specific message
oh are you talking about the github link?
The link in the issue which takes you to a SPECIFIC discord message...
Yes. xD
Anyway this is the reason
Good luck fixing it
Thanks now I'll see about going around a bit
mice I highlight the post as solved if you want you can close it
@hot tinsel did you find something I have the same error i am using wave music too
Other errors no. Only Bad Request Error 400 that I don't know how to fix ...
me too
#ts_shoukaku
??
ask them
Okk
go ask the shoukaku devs
Done
all i see is that girl getting pissed of the guy who asked ๐
im scared ๐ญ
its a code issue
oh
it was working before and it recently started showing this
so any update caused this?
go bitch at the wavelink dev
this whole thing is between a open source bot
๐น man i did that guy himself is confused ig ๐
welp
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
reading must be hard for sum
Yes I solved it by myself I fiddled with the codes a bit I got help from ChatGPT at least he is always available.
And everything works perfectly for me now.
oh which part did you edit tho ๐
๐ญ a lil help here
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
Yo, i got the same issue. Can you tell me where you fixed it?
๐ญ bro
thats what he just explained
๐my 2 brain cell's can't handle it
I simply asked chatgpt by sending him the entire bot file, I had him explain everything inside and I specified that when I request a playback, whether it be YouTube, Spotify or SoundCloud, it always gave me error 400 bad request
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
Nice, lemme try
๐the WHAT
ENTIRE DUCKING FILE?
wow
bruh
read from start maybe u fill understand?
i did
This could simply be solved by reading the code provided, but apparently they don't like to read
bro asked gpt when you only need to change playTrack to the linked example 
hey do you really think if they were (including me) knows about that much use a random bot form github? ๐ญ
https://guide.shoukaku.shipgirl.moe/guides/3-common/#playing-a-track-and-changing-a-playback-option do this link look like a random bot 
https://safe.saya.moe/XY6wBwfZlEKR.png literally the answer for your problem will show
if you just click the link
He mean that he use a random discord bot founded on github and cant fix it
which file is that ๐ญ
bruh dude i didn't call you for that
Wait
look at what he says where is that thing man ๐ญ
Its the doc file bruh
BRUH
WHERE DO I EDIT IT IN THE BOT FILE DUMBO
i am supposed to be the one dumb here man
-.-
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||
Oh my then wat?
Paste the example code in?
Not copy and paste exactly
So actually modify it.
Ye thanks
Now i cook the bot
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...
One message removed from a suspended account.
Why do you want a code that is more support?
One message removed from a suspended account.
it is abandoned
One message removed from a suspended account.
- this.player.playTrack({ track: this.current?.encoded });
+ this.player.playTrack({ track: { encoded: this.current?.encoded } });
One message removed from a suspended account.
One message removed from a suspended account.