#Lavalink Issues
1 messages · Page 1 of 1 (latest)
My account is fine, and the refresh token is also fine,
Well youtube does not seem to think so if its giving you a 401
Okay, i tried another account, and i change everything old to new, and the same error
i think the problem is with lavalink 1.15.0 version
Try 1.14 and see if that fixes it
any idea my lavalink working well on local system but giving issues when i try to run from vps ? even i added yt account but still yt blocked
Ahh yes, I know exactly your issue and the fix based on your great description. 
please help me with that
Make a new thread in #1082303817686732881 with logs, details about your setup and a lot better description than "help it broken"
okey
i tried it too, the same error
There are so many people facing that error, my friend facing that too
So if 1.14 still has the issue it is fair to say that 1.15 is the problem
When did it stop working and this error showed up?
What kind of machine does this run on? (Homeserver, cloud provider, etc)
Im running it on host, also 1 week ago 1.14 was working fine with me, Yesterday i was playing a youtube song and the bot didn’t even play the song or i can’t hear it, so i saw the cmd and i got that error said i have to update to 1.15
And still facing that error
Thats all
No way bro your running it on host that gives me so much info
What i have to do then bro
Can you try running LL with your same setup on your home PC or from your home network? Maybe your hosting provider is flagged for oauth? Idk if they do that, but its possible
Im running it on OptikLink Host,
Does running it on a home network still have the 401?
If it's still 401 on a residential network the issue is very likely with the account, how many active players were on nodes that used that account roughly?
Which account, if you mean Youtube account, then thats only me
So its a private lavalink server?
Yes, like a free hosting, and i have my own panel with a private IP and Port
Could you share your application.yml and hide any important details like api keys etc
youtube account can be fine but it could've had TV access revoked
have you tried going through the oauth flow again?
I would be inclined to say it's not an issue with youtube-source per se, as I have just rebooted my node to force a token refresh and it is still OK https://serux.pro/1ccb6c846c.png
lavalink:
plugins:
- dependency: dev.lavalink.youtube:youtube-plugin:1.15.0
snapshot: false
server:
bufferDurationMs: 400
filters:
channelMix: true
distortion: true
equalizer: true
karaoke: true
lowPass: true
rotation: true
timescale: true
tremolo: true
vibrato: true
volume: true
frameBufferDurationMs: 5000
gc-warnings: true
opusEncodingQuality: 10
password: youshallnotpass
playerUpdateInterval: 5
resamplingQuality: LOW
soundcloudSearchEnabled: true
sources:
bandcamp: true
http: true
local: false
nico: true
soundcloud: true
twitch: true
vimeo: true
youtube: false
trackStuckThresholdMs: 10000
useSeekGhosting: true
youtubePlaylistLoadLimit: 6
youtubeSearchEnabled: true
logging:
file:
path: ./logs/
level:
lavalink: INFO
root: INFO
logback:
rollingpolicy:
max-file-size: 1GB
max-history: 30
request:
enabled: true
includeClientInfo: true
includeHeaders: false
includePayload: true
includeQueryString: true
maxPayloadLength: 10000
metrics:
prometheus:
enabled: false
endpoint: /metrics
plugins:
youtube:
allowDirectPlaylistIds: true
allowDirectVideoIds: true
allowSearch: true
clients:
- MUSIC
- ANDROID_VR
- WEB
- WEBEMBEDDED
cookies:
email:
enabled: true
oauth:
clientId:
clientSecret:
enabled: true
refreshToken:
password:
sentry:
dsn: ""
environment: ""
server:
address: 0.0.0.0
http2:
enabled: false
port:
How can i do that?
@whole gust
@whole hornet
Sorry my bro
cookies and email are invalid config properties, as is clientId and clientSecret and password
Correct, i removed them but still have 401 error
.
Wait
You're not even using OAuth clients
That is my question
how to add them sir
can you give me the whole application.yml and i will try to add everything
Same way you added ANDROID_VR, WEB etc
No
what i should to add then?
Same error, i added TV client
1 more time, the issue likely lies with the account. Any LL problem would surface a 400, not a 401. 401 is for accounts that have been flagged or banned in some way. Flagged/banned does not mean the account is fully banned from YT or google, but it can be banned or restricted from the legacy TV oauth (what LL uses)
Did you enable oauth
If so post your updated application.yml
In a code block add ``` before and after your code
Please can you send me the correct application.yml

send me your current one
Thats it
didn’t u say u added tv client?
I removed it, because i got the same error, send me the correct one please
🙏🏻
For your information, I created a new Gmail account, activated YouTube, and literally everything new. I filled in the new keys again.
Same error 
.txt file exists
plugins:
youtube:
enabled: true
oauth:
# setting "enabled: true" is the bare minimum to get OAuth working.
enabled: true
# if you have a refresh token, you may set it below (make sure to uncomment the line to apply it).
# setting a valid refresh token will skip the OAuth flow entirely. See above note on how to retrieve
# your refreshToken.
# refreshToken: "paste your refresh token here if applicable"
# Set this if you don't want the OAuth flow to be triggered, if you intend to supply a refresh token later.
# Initialization is skipped automatically if a valid refresh token is supplied. Leave this commented if you're
# completing the OAuth flow for the first time/do not have a refresh token.
# skipInitialization: true
bro i already have these codes
ClientId clientSecret ??
You are not following what docs says
omg, then please give me the correct application.yml
Put your TV clients at the top of the list.
In your config there are 2 tv clients , just put them at the top of the clients list
Yes
Now try and see if it's working or not
Same error
I just tried all solutions and still getting the same error
BRO EVERYTHING
Have you tried this same setup from your local network like pc or laptop etc ?
clients:
- TV
- TVHTML5EMBEDDED
- WEB
- MUSIC
- IOS
- MWEB
- ANDROID
- ANDROID_MUSIC
- ANDROID_VR
- WEBEMBEDDED```
and still the same error
i gave u mine
feel free to remove android tho
since it's dead
but the list of clients.. shouldn't cause the errors tho
hm
give me a sec im trying it
there is a chance that your host is denying requests, not sure though 🤔
Based on this error at least 🤔
Bro same error yo
same shit on every solution
I also get this kind of 401 error a lot. It happens with one refresh token out of five, but I haven’t looked into which one is dead since the other four work fine.
Yeah but, he gets this one 2025-10-15T12:03:12.282Z WARN 27 --- [Lavalink] [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'youtubeRestHandler' defined in URL [jar:file:/home/container/plugins/youtube-plugin-1.15.0.jar!/dev/lavalink/youtube/plugin/YoutubeRestHandler.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'audioPlayerManagerSupplier' defined in class path resource [lavalink/server/config/AudioPlayerConfiguration.class]: Failed to instantiate [com.sedmelluq.discord.lavaplayer.player.AudioPlayerManager]: Factory method 'audioPlayerManagerSupplier' threw exception with message: java.io.IOException: Invalid status code for oauth2 token fetch: 401 2025-10-15T12:03:12.332Z ERROR 27 --- [Lavalink] [ main] lavalink.server.Launcher : Application failed org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'youtubeRestHandler' defined in URL [jar:file:/home/container/plugins/youtube-plugin-1.15.0.jar!/dev/lavalink/youtube/plugin/YoutubeRestHandler.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'audioPlayerManagerSupplier' defined in class path resource [lavalink/server/config/AudioPlayerConfiguration.class]: Failed to instantiate [com.sedmelluq.discord.lavaplayer.player.AudioPlayerManager]: Factory method 'audioPlayerManagerSupplier' threw exception with message: java.io.IOException: Invalid status code for oauth2 token fetch: 401
which tells me it may be a problem on the docker end, or the provider he uses for hosting
or well, there may be some corruption, how about redownloading the files and reconfiguring?
Bro i have redownloading everything again, and uploud everything step by step and still getting this error: Invalid status code for oauth2 token fetch: 401
then.. this might be the issue
i don't know, can you give me a good hosting for that?
Hm, does it work when you try to host it locally on your pc?
Right now, i tried it, same error
also i tried it on my PC and a Host, before 1.15.0 version was working for me very fine, but after that 2outh update isn't working for me
Modify it as you like since I obviously redacted what i had in there 💀
as for remote cipher and the rest, i'm sure you will find a way:>
yes it worked right now on my pc
but i need it on host
to keep it 24/7
Try it on host if it works with this config
at this config worked on my local pc, but on host i use, i got this error: This video requires login.
So that's my problem
I see, so it did work to some extent
u configured the oauth, right?
like, did u copy the token and pasted it in config
?
you mean refresh token?
yes, i paste your application.ynl and put the refresh token but got the old error that 401 shit
aha
i know you are not understand what happening, me too
Also on my local PC working very fine without that refresh token, but on Host requires to login throw refresh token, and when i provide the refresh token dosen't work
You are using remotecipher?
how i can do that?
there is documentation on the github about that
It worked, thank you so much, really appreciate it 🙏🏻
What was the actual issue?
And I'm glad i could be of help
The issue was because of my host i use, actually denying request from Youtube, trash host as well, so i use another hosting service and everything is fine.
And because of you’re application.yml helped me so much
I'm glad you resolved it ^^
Thank you so much bro
I did say that there is a chance of it being caused by the host haha
❤️
since even the config didn't work
That’s right
Really appreciate your help
<3333