TeamNewPipe / NewPipe-legacy

NewPipe with support for older devices
GNU General Public License v3.0
131 stars 36 forks source link

Unable to request any stream #90

Open H1rkovic opened 2 years ago

H1rkovic commented 2 years ago

Checklist

Steps to reproduce the bug

  1. Go to search
  2. Type anything and let it load some videos
  3. Trying to start a Video is leading to a "crash" and im getting the error message as shown below

Actual behaviour

As been described it is not possible to load any Video without getting an error that the requested website could not have been analyzed (original text in german: konnte website nicht analysieren). And I get this message since yesterday with any Video. In addition to that It's not possible for me to see the trends. NewPipe is trying to load something but I don't get any Video shown there. But that never worked on my device. I also tried to reinstall but it didn't work.

Expected behavior

Well I expect it to play the videos so I can listen music agaib while having the app as a background process. Thank you in advance.

Screenshots/Screen recordings

Logs

Exception

org.schabi.newpipe.extractor.exceptions.ParsingException: Could not parse JSON
    at org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper.toJsonArray(YoutubeParsingHelper.java:628)
    at org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper.getJsonResponse(YoutubeParsingHelper.java:607)
    at org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor.onFetchPage(YoutubeStreamExtractor.java:710)
    at org.schabi.newpipe.extractor.Extractor.fetchPage(Extractor.java:54)
    at org.schabi.newpipe.extractor.stream.StreamInfo.getInfo(StreamInfo.java:68)
    at org.schabi.newpipe.extractor.stream.StreamInfo.getInfo(StreamInfo.java:64)
    at org.schabi.newpipelegacy.util.ExtractorHelper.lambda$getStreamInfo$3(ExtractorHelper.java:127)
    at org.schabi.newpipelegacy.util.-$$Lambda$ExtractorHelper$UQ1vNWjXRu939LDH1klSnNo2_Zg.call(Unknown Source:4)
    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.SingleDoOnSuccess.subscribeActual(SingleDoOnSuccess.java:35)
    at io.reactivex.rxjava3.core.Single.subscribe(Single.java:4813)
    at io.reactivex.rxjava3.internal.operators.maybe.MaybeFromSingle.subscribeActual(MaybeFromSingle.java:41)
    at io.reactivex.rxjava3.core.Maybe.subscribe(Maybe.java:5330)
    at io.reactivex.rxjava3.internal.operators.maybe.MaybeConcatArray$ConcatMaybeObserver.drain(MaybeConcatArray.java:153)
    at io.reactivex.rxjava3.internal.operators.maybe.MaybeConcatArray$ConcatMaybeObserver.request(MaybeConcatArray.java:78)
    at io.reactivex.rxjava3.internal.operators.flowable.FlowableElementAtMaybe$ElementAtSubscriber.onSubscribe(FlowableElementAtMaybe.java:66)
    at io.reactivex.rxjava3.internal.operators.maybe.MaybeConcatArray.subscribeActual(MaybeConcatArray.java:42)
    at io.reactivex.rxjava3.core.Flowable.subscribe(Flowable.java:15753)
    at io.reactivex.rxjava3.internal.operators.flowable.FlowableElementAtMaybe.subscribeActual(FlowableElementAtMaybe.java:36)
    at io.reactivex.rxjava3.core.Maybe.subscribe(Maybe.java:5330)
    at io.reactivex.rxjava3.internal.operators.maybe.MaybeToSingle.subscribeActual(MaybeToSingle.java:46)
    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:1167)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    at java.lang.Thread.run(Thread.java:920)
Caused by: com.grack.nanojson.JsonParserException: JSON did not contain the correct type, expected JsonArray. on line 1, char 354499
    at com.grack.nanojson.JsonTokener.createParseException(Unknown Source:44)
    at com.grack.nanojson.JsonParser.parse(Unknown Source:61)
    at com.grack.nanojson.JsonParser$JsonParserContext.from(Unknown Source:19)
    at org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper.toJsonArray(YoutubeParsingHelper.java:626)
    ... 31 more


Device info

H1rkovic commented 2 years ago

I don't know why and how but the issue solved itself for now.

Sonicjhon commented 2 years ago

I'm having the same issue I can only play it on background but sometimes it fix it if you change the video format to 3GP for some reason the comment section keep saying (no comment) but in YouTube there's a comment

H1rkovic commented 2 years ago

Now I'm having the issue again. I'd like to try to change the video format but I can't even start the video. It doesn't open the YouTube page of the video.