DuncteBot / java-timed-lyrics

Lyrics plugin for lavalink
MIT License
6 stars 1 forks source link

Wrong auth token used for Genius api requests #3

Closed KMen1 closed 6 months ago

KMen1 commented 6 months ago

No matter what access token I provide in the config the request sent to the genius api seems to always use my youtube access token instead

Updating YouTube access token succeeded, new token is ya29.a0AfB_byADjeO6IlwyY8o818ZI2DOEABfO7Q...
http-outgoing-3 >> "GET /search?q=bohemian+rhapsody HTTP/1.1[\r][\n]"
http-outgoing-3 >> "Authorization: Bearer ya29.a0AfB_byADjeO6IlwyY8o818ZI2DOEABfO7Q...[\r][\n]"
http-outgoing-3 >> "Host: api.genius.com[\r][\n]"
http-outgoing-3 << "HTTP/1.1 401 Unauthorized[\r][\n]"
http-outgoing-3 << "{"meta":{"status":401,"message":"This call requires an access_token. Please see: https://genius.com/developers"}}"
duncte123 commented 6 months ago

Do you happen to have ip-rotation turned on? (I think I know where this bug happens)

KMen1 commented 6 months ago

I do not have it turned on

duncte123 commented 6 months ago

Would you mind trying version 1.6.2?

KMen1 commented 6 months ago

1.6.2 Fixes the issue, thank you!