iv-org / invidious

Invidious is an alternative front-end to YouTube
https://invidious.io
GNU Affero General Public License v3.0
16.21k stars 1.79k forks source link

[Bug] "Please sign in" from residential IP, youtube.com works #4975

Closed markozajc closed 5 hours ago

markozajc commented 11 hours ago

Describe the bug The following is shown after attempting to visit any /watch url:

image

I am not using a proxy and visiting youtube.com lets me play the video without logging in. yt-dlp 2024.09.27 and mpv also work. This appears to be the same issue as #4972, but I don't believe it's the same as #4734.

Steps to Reproduce

  1. Open invidious
  2. Try playing any video, for example /watch?v=aqz-KE-bpKQ

Logs

2024-10-03 10:37:46 UTC [trace] SigHelper: Send transaction 0x6b9d453e / opcode GET_SIGNATURE_TIMESTAMP
2024-10-03 10:37:46 UTC [trace] SigHelper: Send transaction 0x6b9d453e - Done
2024-10-03 10:37:46 UTC [trace] SigHelper: Recv transaction 0x6b9d453e / length 8
2024-10-03 10:37:46 UTC [trace] SigHelper: payload = Bytes[0, 0, 0, 0, 0, 0, 78, 29]
2024-10-03 10:37:46 UTC [trace] SigHelper: Recv transaction 0x6b9d453e - Done
2024-10-03 10:37:46 UTC [trace] SigHelper: Transaction unqueued and data sent to channel
2024-10-03 10:37:46 UTC [debug] YoutubeAPI: Using endpoint: "/youtubei/v1/player"
2024-10-03 10:37:46 UTC [trace] YoutubeAPI: ClientConfig: YoutubeAPI::ClientConfig(@client_type=YoutubeAPI::ClientType::WebCreator, @region="US")
2024-10-03 10:37:46 UTC [trace] YoutubeAPI: POST data: {"contentCheckOk" => true, "videoId" => "aqz-KE-bpKQ", "context" => {"client" => {"hl" => "en", "gl" => "US", "clientName" => "WEB_CREATOR", "clientVersion" => "1.20240918.03.00", "osName" => "Windows", "osVersion" => "10.0", "platform" => "DESKTOP", "visitorData" => "SNIP"}}, "racyCheckOk" => true, "user" => {"lockedSafetyMode" => false}, "playbackContext" => {"contentPlaybackContext" => {"html5Preference" => "HTML5_PREF_WANTS", "referer" => "https://www.youtube.com/watch?v=aqz-KE-bpKQ", "signatureTimestamp" => 19997}}, "serviceIntegrityDimensions" => {"poToken" => "SNIP"}, "params" => "2AMB"}
2024-10-03 10:37:46 UTC [error] get_video: aqz-KE-bpKQ : Please sign in
2024-10-03 10:37:46 UTC [warn] i18n: Missing translation key "Please sign in"
2024-10-03 10:37:46 UTC [info] 500 GET /watch?v=aqz-KE-bpKQ 146.11ms

Additional context

svpi11 commented 11 hours ago

Same here...

msinfo32github commented 10 hours ago

Was encountering the same problem - ran the inv_sig_helper and generated a new visitor_data and po_token. This seems to have solved the issue. Running on a residential IP, with same setup as described by @markozajc

gr3m1in commented 10 hours ago

I can confirm that regenerating visitor_data/po_token helps

markozajc commented 10 hours ago

I just did the same, and the issue has gone away, but doing so initially didn't help. This sounds like A/B testing, so there's probably more to come. I'll close the issue for now.

unixfox commented 6 hours ago

https://github.com/iv-org/invidious/issues/4734

Please don't create duplicated issues thank you. If you have a constant error please logging, it's expected: https://github.com/iv-org/invidious/issues/4734#issuecomment-2365205990

unixfox commented 5 hours ago

https://github.com/iv-org/invidious/issues/4734

Please don't create duplicated issues thank you. If you have a constant error please logging, it's expected: https://github.com/iv-org/invidious/issues/4734#issuecomment-2365205990