[Bug] Logging in
Checklist
- [x] I make sure that the issue is NOT a duplicate of pinned issues
- [x] I make sure I am using the LATEST version - check here
- [x] I understand that issues with limited impact, such as those occurring on specific devices or under specific network conditions, will not be fixed
- [x] I have attached the error report in the issue
Describe the bug
So I tried logging into YouTube but it just doesn't work at all. It always gives me a could not parse website error and doesn't load the videos at all. No matter what I watch.
Version
5.2.0
Frequency
Always (100% of the time)
Device
Samsung Galaxy s24 ultra
Steps to reproduce the bug
- Login to YouTube
- Click on any video
- Error happens
https://github.com/user-attachments/assets/9ec0c8bc-0385-4c66-ad81-20e649411a01
Additional context
Exception
- User Action: requested stream
- Request: https://www.youtube.com/watch?v=-7C4bs7PG9k
- Content Country: US
- Content Language: en-US
- App Language: en_US
- Service: YouTube (Logged in)
- Version: 5.2.0
- OS: Linux samsung/e3qsqw/e3q:16/BP4A.251205.006/S928USQU5DZDR:user/release-keys 16 - 36
Crash log
org.schabi.newpipe.extractor.exceptions.ExtractionException: Failed to get authorization header
at org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper.addLoggedInHeaders(r8-map-id-c0516b28995b7ee05916d6916abd6008f164779f86cdacbb6d441fe25326605f:54)
at org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor.onFetchPage(r8-map-id-c0516b28995b7ee05916d6916abd6008f164779f86cdacbb6d441fe25326605f:85)
at org.schabi.newpipe.extractor.Extractor.fetchPage(r8-map-id-c0516b28995b7ee05916d6916abd6008f164779f86cdacbb6d441fe25326605f:10)
at org.schabi.newpipe.extractor.stream.StreamInfo.getInfo(r8-map-id-c0516b28995b7ee05916d6916abd6008f164779f86cdacbb6d441fe25326605f:13)
at org.schabi.newpipe.util.ExtractorHelper$$ExternalSyntheticLambda3.call(r8-map-id-c0516b28995b7ee05916d6916abd6008f164779f86cdacbb6d441fe25326605f:319)
at io.reactivex.rxjava3.internal.operators.single.SingleJust.subscribeActual(r8-map-id-c0516b28995b7ee05916d6916abd6008f164779f86cdacbb6d441fe25326605f:27)
at io.reactivex.rxjava3.core.Single.subscribe(r8-map-id-c0516b28995b7ee05916d6916abd6008f164779f86cdacbb6d441fe25326605f:6)
at io.reactivex.rxjava3.internal.operators.single.SingleDoOnEvent.subscribeActual(r8-map-id-c0516b28995b7ee05916d6916abd6008f164779f86cdacbb6d441fe25326605f:18)
at io.reactivex.rxjava3.core.Single.subscribe(r8-map-id-c0516b28995b7ee05916d6916abd6008f164779f86cdacbb6d441fe25326605f:6)
at io.reactivex.rxjava3.internal.operators.single.SingleSubscribeOn$SubscribeOnObserver.run(r8-map-id-c0516b28995b7ee05916d6916abd6008f164779f86cdacbb6d441fe25326605f:5)
at io.reactivex.rxjava3.core.Scheduler$DisposeTask.run(r8-map-id-c0516b28995b7ee05916d6916abd6008f164779f86cdacbb6d441fe25326605f:10)
at io.reactivex.rxjava3.internal.schedulers.ScheduledRunnable.run(r8-map-id-c0516b28995b7ee05916d6916abd6008f164779f86cdacbb6d441fe25326605f:22)
at io.reactivex.rxjava3.internal.schedulers.ScheduledRunnable.call(r8-map-id-c0516b28995b7ee05916d6916abd6008f164779f86cdacbb6d441fe25326605f:1)
at java.util.concurrent.FutureTask.run(FutureTask.java:328)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:323)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1100)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:1572)
Caused by: java.lang.IllegalArgumentException: SAPISID not found in cookies
at okhttp3.internal.Util$$ExternalSyntheticLambda0.m$3(r8-map-id-c0516b28995b7ee05916d6916abd6008f164779f86cdacbb6d441fe25326605f:20)
at org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper.getAuthorizationHeader(r8-map-id-c0516b28995b7ee05916d6916abd6008f164779f86cdacbb6d441fe25326605f:70)
at org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper.addLoggedInHeaders(r8-map-id-c0516b28995b7ee05916d6916abd6008f164779f86cdacbb6d441fe25326605f:26)
... 17 more
I've had the same problem. Same Device. Started about 6 hours ago.
Caused by: java.lang.IllegalArgumentException: SAPISID not found in cookies
For some reason the login is failed. I don't know why but this should be refused by the app. Will check it later. For now please log out and log in again. And, in your video it shows that clicking log out doesn't work on your device?
issue should be fixed in 5.2.1-beta. Logout first.