#Lavalink Issues

1 messages · Page 1 of 1 (latest)

candid path
#

Try a different account, could be banned. Or you are providing an invalid refresh token

teal glen
candid path
#

Well youtube does not seem to think so if its giving you a 401

teal glen
#

i think the problem is with lavalink 1.15.0 version

candid path
#

Try 1.14 and see if that fixes it

ashen pecan
#

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

candid path
#

Ahh yes, I know exactly your issue and the fix based on your great description. blankstare

candid path
#

Make a new thread in #1082303817686732881 with logs, details about your setup and a lot better description than "help it broken"

teal glen
#

There are so many people facing that error, my friend facing that too

candid path
#

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)

teal glen
#

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

whole hornet
teal glen
#

What i have to do then bro

candid path
#

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

teal glen
candid path
#

Does running it on a home network still have the 401?

teal glen
#

Still 401

#

Bro i know that you don’t understand the issue, so me too

candid path
#

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?

teal glen
#

Which account, if you mean Youtube account, then thats only me

candid path
#

So its a private lavalink server?

teal glen
whole hornet
whole gust
#

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

teal glen
# whole hornet Could you share your application.yml and hide any important details like api key...

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:

teal glen
#

@whole gust
@whole hornet

whole gust
#

Don't ping, #info

#

Wrap your config in a codeblock as the indentation is messed up

teal glen
whole gust
#

cookies and email are invalid config properties, as is clientId and clientSecret and password

teal glen
whole gust
#

Wait

#

You're not even using OAuth clients

teal glen
#

how to add them sir

#

can you give me the whole application.yml and i will try to add everything

whole gust
#

Same way you added ANDROID_VR, WEB etc

teal glen
teal glen
#

Same error, i added TV client

candid path
#

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)

whole hornet
#

If so post your updated application.yml

#

In a code block add ``` before and after your code

teal glen
whole hornet
whole hornet
teal glen
whole hornet
teal glen
#

🙏🏻

teal glen
#

For your information, I created a new Gmail account, activated YouTube, and literally everything new. I filled in the new keys again.

Same error madge

sturdy lotus
#

Send your updated application.yml in a code block

#

Remove any important details

sturdy lotus
#
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
teal glen
#

bro i already have these codes

teal glen
#

but i hide the important details

sturdy lotus
#

ClientId clientSecret ??

teal glen
#

i have these all

#

they are on my application.yml

sturdy lotus
#

You are not following what docs says

teal glen
#

omg, then please give me the correct application.yml

sturdy lotus
#

Put your TV clients at the top of the list.

teal glen
#

Please just paste it here for me

#

please bro

sturdy lotus
#

In your config there are 2 tv clients , just put them at the top of the clients list

teal glen
#

clients:
- TV
- TVHTML5
- WEB
- WEBEMBEDDED
- MUSIC
- ANDROID_VR

#

you mean like this?

sturdy lotus
#

Yes

teal glen
#

Done

#

what now

sturdy lotus
#

Now try and see if it's working or not

teal glen
#

Same error

#

I just tried all solutions and still getting the same error

#

BRO EVERYTHING

sturdy lotus
#

Have you tried this same setup from your local network like pc or laptop etc ?

teal glen
#

Yes

#

everything

#

I treid on a host, laptop, vps network, i mean everything

tepid wharf
#
    clients:
      - TV
      - TVHTML5EMBEDDED
      - WEB
      - MUSIC
      - IOS
      - MWEB
      - ANDROID
      - ANDROID_MUSIC
      - ANDROID_VR
      - WEBEMBEDDED```
teal glen
#

and still the same error

tepid wharf
#

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

teal glen
#

give me a sec im trying it

tepid wharf
#

there is a chance that your host is denying requests, not sure though 🤔

#

Based on this error at least 🤔

teal glen
#

same shit on every solution

sturdy lotus
#

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.

tepid wharf
#

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?

teal glen
#

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

tepid wharf
teal glen
#

i don't know, can you give me a good hosting for that?

tepid wharf
#

Hm, does it work when you try to host it locally on your pc?

teal glen
#

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

tepid wharf
#

as for remote cipher and the rest, i'm sure you will find a way:>

teal glen
#

but i need it on host

#

to keep it 24/7

tepid wharf
#

Try it on host if it works with this config

teal glen
#

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

tepid wharf
#

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

#

?

teal glen
#

you mean refresh token?

tepid wharf
#

Yes

#

The one your console prints

#

after finishing the oauth flow

teal glen
#

yes, i paste your application.ynl and put the refresh token but got the old error that 401 shit

tepid wharf
#

aha

teal glen
#

i know you are not understand what happening, me too

tepid wharf
#

This is odd

#

should have worked

teal glen
#

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?

tepid wharf
#

there is documentation on the github about that

teal glen
#

It worked, thank you so much, really appreciate it 🙏🏻

tepid wharf
#

And I'm glad i could be of help

teal glen
#

And because of you’re application.yml helped me so much

tepid wharf
#

I'm glad you resolved it ^^

teal glen
#

Thank you so much bro

tepid wharf
#

I did say that there is a chance of it being caused by the host haha

teal glen
#

❤️

tepid wharf
#

since even the config didn't work

teal glen
#

Really appreciate your help

#

<3333