invidious icon indicating copy to clipboard operation
invidious copied to clipboard

Login Tokens being instantly banned?

Open Joshndroid opened this issue 2 years ago • 15 comments

I have some weird new behaviour that has cropped up in the last week in that when i log into my self hosted account it appears that the tokens are instantly red, and no video/etc loads ('the media could not be loaded, either because the server or network failed or because the format is not supported'). I assume this is being blacklisted or something.

It seems it happens only for my user and it occurs across 2 different devices that I try to use with my invidious instance.

When i revoke the now red/banned token I can view videos once again but I am logged out, without my subscriptions.

Looking in the invidious docker logs I can't see anything where it fails.

Any tips on where i might be going wrong? It's been solid for many many months

Joshndroid avatar Jan 19 '23 23:01 Joshndroid

What do you actually mean by a token?

unixfox avatar Jan 20 '23 07:01 unixfox

In the 'manage token' section i see that it appears that there is an associated token for when you login. Each time these seem to go red straight away. Once i revoke that token I can browse and view videos but no longer am logged into my account. I kinda figured it was to do with logging in but in hindsight i am not entirely sure

Joshndroid avatar Jan 20 '23 07:01 Joshndroid

Please post a screenshot of what you said.

unixfox avatar Jan 20 '23 07:01 unixfox

_20230120_180616 _20230120_180633 _20230120_180647

The video doesn't work while logged in.. Go to manage tokens, delete the red token then go back to video (no longer logged in now), the video works

Joshndroid avatar Jan 20 '23 08:01 Joshndroid

And if you log in fresh again, I am getting another red token.. So need to delete it and stay not logged in

Joshndroid avatar Jan 20 '23 08:01 Joshndroid

IMG_20230120_181151

Joshndroid avatar Jan 20 '23 08:01 Joshndroid

Did you set HMAC_KEY in the config file to a fixed value?

unixfox avatar Jan 20 '23 11:01 unixfox

And if you log in fresh again, I am getting another red token.. So need to delete it and stay not logged in

A red token means that it's the current session!

SamantazFox avatar Jan 20 '23 17:01 SamantazFox

No i had that as false. For sanity i set it up as true, made sure my domain was set (it was) and generated a base64 string for the hmac_key but this didn't fix it.

Joshndroid avatar Jan 21 '23 04:01 Joshndroid

And if you log in fresh again, I am getting another red token.. So need to delete it and stay not logged in

A red token means that it's the current session!

Okay so the current session is in red, that would explain why when i revoke it i'm logged out.

Sadly still can't seem to get my logged in user working at present.

Double checking the invidious container log i can see

2023-01-21 04:47:03 UTC [error] RefreshChannelsJob: UCKe34IEj6kvAh652xVLIYRQ : Deleted or invalid channel

Joshndroid avatar Jan 21 '23 04:01 Joshndroid

Interestingly, I created a new user. imported my subscriptions in again and it it working as expected. Maybe my user became corrupted for some reason?

The other user's that have login to my instance were working this whole time. It was just my initial user that i created from the initial creation way back when.

I assume this will end up just being closed due to being one of those weird things but at present it seems to be working for me with a new user. I will keep this open for now and see what else i can find.

Joshndroid avatar Jan 21 '23 04:01 Joshndroid

I assume this will end up just being closed due to being one of those weird things but at present it seems to be working for me with a new user. I will keep this open for now and see what else i can find.

That's indeed a very odd bug, and likely impossible for us to reproduce it. Let us know if you find anything interesting!

SamantazFox avatar Jan 21 '23 14:01 SamantazFox

So i fixed some of my settings on the 'new' user.... Usually i set DASH as the format and have it at prefer 1080p.

I noticed that when i went back to view videos it would not load exactly as before.

I have turned off dash and set it to HD720 to which it has then been able to play the videos.

I went back to my original user and tried again, it displayed the same behaviour.

Toggling proxy videos either on or off did not change the behaviour

Joshndroid avatar Jan 22 '23 03:01 Joshndroid

This issue has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely outdated. If you think this issue is still relevant and applicable, you just have to post a comment and it will be unmarked.

github-actions[bot] avatar Aug 30 '24 12:08 github-actions[bot]

Had same issues. After switching the quality to hd720, the playback worked fine. One thing I noticed, is that changing the quality settings while logged out only affects logged out users. Had to switch the quality also after logging in.

apolatynski avatar Sep 28 '24 08:09 apolatynski