Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant search YT from EU , works via US VPN (cookie related probably) #6506

Closed
1 task done
lsomm opened this issue Jun 17, 2021 · 1 comment
Closed
1 task done

Cant search YT from EU , works via US VPN (cookie related probably) #6506

lsomm opened this issue Jun 17, 2021 · 1 comment
Labels
duplicate Issue or discussion is a duplicate of an existing issue or discussion template ignored The user didn't follow the template/instructions (or removed them)

Comments

@lsomm
Copy link

lsomm commented Jun 17, 2021

Checklist

Steps to reproduce the bug

Actual behaviour

Search fails, error report

It also fails when using a VPN via NL. When switching to US it works fine. After using US, it works without proxy for a while, but after clearing cache or a certain timeout it stops working again. That's why I suspect a cookie issue.

See #6507

Expected behavior

Search succeeds

Screenshots/Screen recordings

Logs

Exception

  • User Action: searched
  • Request: test
  • Content Country: DE
  • Content Language: de
  • App Language: de_DE
  • Service: YouTube
  • Version: 0.21.5
  • OS: Linux Android 8.1.0 - 27
Crash log

org.schabi.newpipe.extractor.exceptions.ParsingException: Could not get ytInitialData
at org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper.getInitialData(YoutubeParsingHelper.java:280)
at org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper.extractClientVersionAndKey(YoutubeParsingHelper.java:298)
at org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper.getKey(YoutubeParsingHelper.java:376)
at org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeSearchExtractor.getNewNextPageFrom(YoutubeSearchExtractor.java:234)
at org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeSearchExtractor.getInitialPage(YoutubeSearchExtractor.java:127)
at org.schabi.newpipe.extractor.utils.ExtractorHelper.getItemsPageOrLogError(ExtractorHelper.java:19)
at org.schabi.newpipe.extractor.search.SearchInfo.getInfo(SearchInfo.java:60)
at org.schabi.newpipe.extractor.search.SearchInfo.getInfo(SearchInfo.java:30)
at org.schabi.newpipe.util.ExtractorHelper.lambda$searchFor$0(ExtractorHelper.java:80)
at org.schabi.newpipe.util.-$$Lambda$ExtractorHelper$qyxpuXgomWa-cbONQns-pd7zxm0.call(Unknown Source:8)
at io.reactivex.rxjava3.internal.operators.single.SingleFromCallable.subscribeActual(SingleFromCallable.java:43)
at io.reactivex.rxjava3.core.Single.subscribe(Single.java:4813)
at io.reactivex.rxjava3.internal.operators.single.SingleSubscribeOn$SubscribeOnObserver.run(SingleSubscribeOn.java:89)
at io.reactivex.rxjava3.core.Scheduler$DisposeTask.run(Scheduler.java:614)
at io.reactivex.rxjava3.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:65)
at io.reactivex.rxjava3.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:56)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
Caused by: org.schabi.newpipe.extractor.utils.Parser$RegexException: failed to find pattern "var\sytInitialData\s=\s*({.*?});"
at org.schabi.newpipe.extractor.utils.Parser.matchGroup(Parser.java:74)
at org.schabi.newpipe.extractor.utils.Parser.matchGroup(Parser.java:63)
at org.schabi.newpipe.extractor.utils.Parser.matchGroup1(Parser.java:54)
at org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper.getInitialData(YoutubeParsingHelper.java:276)
... 20 more


@lsomm lsomm added the bug Issue is related to a bug label Jun 17, 2021
@AudricV
Copy link
Member

AudricV commented Jun 17, 2021

Duplicate of #5977.

@AudricV AudricV closed this as completed Jun 17, 2021
@AudricV AudricV added duplicate Issue or discussion is a duplicate of an existing issue or discussion template ignored The user didn't follow the template/instructions (or removed them) and removed bug Issue is related to a bug labels Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issue or discussion is a duplicate of an existing issue or discussion template ignored The user didn't follow the template/instructions (or removed them)
Projects
None yet
Development

No branches or pull requests

2 participants