Twire icon indicating copy to clipboard operation
Twire copied to clipboard

Failed to play stream

Open ShoofLLC opened this issue 1 year ago • 5 comments

Describe the bug Looks like something changed (probably twitch) and now we can't view streams anymore.

Smartphone (please complete the following information):

  • Device: Sony Xperia
  • Android Version: Android 12
  • Twire Version: 2.10.8

ShoofLLC avatar Jan 07 '24 16:01 ShoofLLC

Was just coming to report this. Error is:

01-07 11:40:00.734  8922  8922 D StreamFragment: Fetching viewers
01-07 11:40:00.858  8922  9179 W System.err: org.json.JSONException: No value for total
01-07 11:40:00.862  8922  9179 W System.err: 	at org.json.JSONObject.get(JSONObject.java:398)
01-07 11:40:00.862  8922  9179 W System.err: 	at org.json.JSONObject.getInt(JSONObject.java:487)
01-07 11:40:00.862  8922  9179 W System.err: 	at com.perflyst.twire.model.ChannelInfo.fetchFollowers(ChannelInfo.java:172)
01-07 11:40:00.862  8922  9179 W System.err: 	at com.perflyst.twire.model.ChannelInfo.lambda$getFollowers$1(ChannelInfo.java:157)
01-07 11:40:00.862  8922  9179 W System.err: 	at com.perflyst.twire.model.ChannelInfo.$r8$lambda$08zhm2Ht2352skUfxwvq_xbk8Nk(ChannelInfo.java:0)
01-07 11:40:00.862  8922  9179 W System.err: 	at com.perflyst.twire.model.ChannelInfo$$ExternalSyntheticLambda1.run(R8$$SyntheticClass:0)
01-07 11:40:00.862  8922  9179 W System.err: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
01-07 11:40:00.862  8922  9179 W System.err: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
01-07 11:40:00.862  8922  9179 W System.err: 	at java.lang.Thread.run(Thread.java:1012)

Both VODs and livestreams seem impacted.

LoneFenris avatar Jan 07 '24 16:01 LoneFenris

Same here for me, unfortunately. Android 14, latest version of Twire.

blueyshark avatar Jan 08 '24 00:01 blueyshark

Here too. Android 10 twire 2.10.8

ibinshoid avatar Jan 08 '24 18:01 ibinshoid

I encountered the issue multiple times already, it seems the twitch api has some strange behaviour when fetching the stream info. I also had troubles to play streams a few days ago but today it's working. Thanks for the input @LoneFenris, it should be easy to add a fallback in case of missing non-video related information.

YohannGutej avatar Jan 09 '24 12:01 YohannGutej

It seems like twitch is doing something because I am having this error intermittently as well. Once the error happens again I'll look into this. I suspect this is related to https://github.com/streamlink/streamlink/pull/5414.

Also apologizes I haven't been able to work on this project for a few months because I haven't been able to sit due to some extreme back pain. Things have been getting better recently and I am going to try to get out an update soon.

samfundev avatar Jan 11 '24 16:01 samfundev