Playback error : Response code: 416
See original GitHub issueThere are some s3 video URLs that are opening fine on the web and mobile chrome. but on ExoPlayer it keeps retrying to connect with the server and in last it throws 416 response code.
It is happening only for 20 min + duration videos. URL starts with HTTPS and there is no redirection to HTTP. although I have added HTTP clearing traffic.
Logs
2021-01-18 18:12:41.448 8666-8896/com.yusufcakmak.exoplayersample I/chatty: uid=10279(com.yusufcakmak.exoplayersample) Loader:Progress identical 2 lines
2021-01-18 18:12:41.450 8666-8896/com.yusufcakmak.exoplayersample D/OpenSSLLib: OpensslErr:Module:12(177:); file:external/boringssl/src/crypto/asn1/asn1_lib.c ;Line:168;Function:ASN1_get_object
2021-01-18 18:12:41.771 8666-8896/com.yusufcakmak.exoplayersample I/System.out: [OkHttp] sendRequest>>
2021-01-18 18:12:41.773 8666-8896/com.yusufcakmak.exoplayersample I/System.out: [OkHttp] sendRequest<<
2021-01-18 18:12:45.684 8666-8896/com.yusufcakmak.exoplayersample I/System.out: port:443
2021-01-18 18:12:45.921 8666-8677/com.yusufcakmak.exoplayersample I/exoplayersampl: Background concurrent copying GC freed 19897(1812KB) AllocSpace objects, 4(96KB) LOS objects, 49% free, 3MB/6MB, paused 15.752ms total 339.351ms
2021-01-18 18:12:46.323 8666-8896/com.yusufcakmak.exoplayersample D/OpenSSLLib: OpensslErr:Module:12(177:); file:external/boringssl/src/crypto/asn1/asn1_lib.c ;Line:168;Function:ASN1_get_object
2021-01-18 18:12:46.329 8666-8896/com.yusufcakmak.exoplayersample I/chatty: uid=10279(com.yusufcakmak.exoplayersample) Loader:Progress identical 2 lines
2021-01-18 18:12:46.331 8666-8896/com.yusufcakmak.exoplayersample D/OpenSSLLib: OpensslErr:Module:12(177:); file:external/boringssl/src/crypto/asn1/asn1_lib.c ;Line:168;Function:ASN1_get_object
2021-01-18 18:12:46.338 8666-8896/com.yusufcakmak.exoplayersample I/System.out: [OkHttp] sendRequest>>
2021-01-18 18:12:46.340 8666-8896/com.yusufcakmak.exoplayersample I/System.out: [OkHttp] sendRequest<<
2021-01-18 18:12:54.406 8666-8896/com.yusufcakmak.exoplayersample I/System.out: port:443
2021-01-18 18:12:55.630 8666-8896/com.yusufcakmak.exoplayersample D/OpenSSLLib: OpensslErr:Module:12(177:); file:external/boringssl/src/crypto/asn1/asn1_lib.c ;Line:168;Function:ASN1_get_object
2021-01-18 18:12:55.644 8666-8896/com.yusufcakmak.exoplayersample I/chatty: uid=10279(com.yusufcakmak.exoplayersample) Loader:Progress identical 2 lines
2021-01-18 18:12:55.650 8666-8896/com.yusufcakmak.exoplayersample D/OpenSSLLib: OpensslErr:Module:12(177:); file:external/boringssl/src/crypto/asn1/asn1_lib.c ;Line:168;Function:ASN1_get_object
2021-01-18 18:12:55.665 8666-8896/com.yusufcakmak.exoplayersample I/System.out: [OkHttp] sendRequest>>
2021-01-18 18:12:55.671 8666-8896/com.yusufcakmak.exoplayersample I/System.out: [OkHttp] sendRequest<<
2021-01-18 18:12:57.954 8666-8896/com.yusufcakmak.exoplayersample I/System.out: port:443
2021-01-18 18:12:58.749 8666-8896/com.yusufcakmak.exoplayersample D/OpenSSLLib: OpensslErr:Module:12(177:); file:external/boringssl/src/crypto/asn1/asn1_lib.c ;Line:168;Function:ASN1_get_object
2021-01-18 18:12:58.762 8666-8896/com.yusufcakmak.exoplayersample I/chatty: uid=10279(com.yusufcakmak.exoplayersample) Loader:Progress identical 2 lines
2021-01-18 18:12:58.768 8666-8896/com.yusufcakmak.exoplayersample D/OpenSSLLib: OpensslErr:Module:12(177:); file:external/boringssl/src/crypto/asn1/asn1_lib.c ;Line:168;Function:ASN1_get_object
2021-01-18 18:12:58.781 8666-8896/com.yusufcakmak.exoplayersample I/System.out: [OkHttp] sendRequest>>
2021-01-18 18:12:58.785 8666-8896/com.yusufcakmak.exoplayersample I/System.out: [OkHttp] sendRequest<<
2021-01-18 18:13:02.121 8666-8896/com.yusufcakmak.exoplayersample I/System.out: [OkHttp] sendRequest>>
2021-01-18 18:13:02.123 8666-8896/com.yusufcakmak.exoplayersample I/System.out: [OkHttp] sendRequest<<
2021-01-18 18:13:03.948 8666-8896/com.yusufcakmak.exoplayersample I/System.out: port:443
2021-01-18 18:13:04.451 8666-8896/com.yusufcakmak.exoplayersample D/OpenSSLLib: OpensslErr:Module:12(177:); file:external/boringssl/src/crypto/asn1/asn1_lib.c ;Line:168;Function:ASN1_get_object
2021-01-18 18:13:04.458 8666-8896/com.yusufcakmak.exoplayersample I/chatty: uid=10279(com.yusufcakmak.exoplayersample) Loader:Progress identical 2 lines
2021-01-18 18:13:04.461 8666-8896/com.yusufcakmak.exoplayersample D/OpenSSLLib: OpensslErr:Module:12(177:); file:external/boringssl/src/crypto/asn1/asn1_lib.c ;Line:168;Function:ASN1_get_object
2021-01-18 18:13:04.469 8666-8896/com.yusufcakmak.exoplayersample I/System.out: [OkHttp] sendRequest>>
2021-01-18 18:13:04.472 8666-8896/com.yusufcakmak.exoplayersample I/System.out: [OkHttp] sendRequest<<
2021-01-18 18:13:07.769 8666-8896/com.yusufcakmak.exoplayersample I/System.out: [OkHttp] sendRequest>>
2021-01-18 18:13:07.774 8666-8896/com.yusufcakmak.exoplayersample I/System.out: [OkHttp] sendRequest<<
2021-01-18 18:13:09.650 8666-8896/com.yusufcakmak.exoplayersample I/System.out: port:443
2021-01-18 18:13:10.140 8666-8896/com.yusufcakmak.exoplayersample D/OpenSSLLib: OpensslErr:Module:12(177:); file:external/boringssl/src/crypto/asn1/asn1_lib.c ;Line:168;Function:ASN1_get_object
2021-01-18 18:13:10.155 8666-8896/com.yusufcakmak.exoplayersample I/chatty: uid=10279(com.yusufcakmak.exoplayersample) Loader:Progress identical 2 lines
2021-01-18 18:13:10.161 8666-8896/com.yusufcakmak.exoplayersample D/OpenSSLLib: OpensslErr:Module:12(177:); file:external/boringssl/src/crypto/asn1/asn1_lib.c ;Line:168;Function:ASN1_get_object
2021-01-18 18:13:10.176 8666-8896/com.yusufcakmak.exoplayersample I/System.out: [OkHttp] sendRequest>>
2021-01-18 18:13:10.182 8666-8896/com.yusufcakmak.exoplayersample I/System.out: [OkHttp] sendRequest<<
2021-01-18 18:13:13.043 8666-8896/com.yusufcakmak.exoplayersample I/System.out: port:443
2021-01-18 18:13:13.660 8666-8896/com.yusufcakmak.exoplayersample D/OpenSSLLib: OpensslErr:Module:12(177:); file:external/boringssl/src/crypto/asn1/asn1_lib.c ;Line:168;Function:ASN1_get_object
2021-01-18 18:13:13.674 8666-8896/com.yusufcakmak.exoplayersample I/chatty: uid=10279(com.yusufcakmak.exoplayersample) Loader:Progress identical 2 lines
2021-01-18 18:13:13.681 8666-8896/com.yusufcakmak.exoplayersample D/OpenSSLLib: OpensslErr:Module:12(177:); file:external/boringssl/src/crypto/asn1/asn1_lib.c ;Line:168;Function:ASN1_get_object
2021-01-18 18:13:13.699 8666-8896/com.yusufcakmak.exoplayersample I/System.out: [OkHttp] sendRequest>>
2021-01-18 18:13:13.704 8666-8896/com.yusufcakmak.exoplayersample I/System.out: [OkHttp] sendRequest<<
2021-01-18 18:13:15.388 8666-8893/com.yusufcakmak.exoplayersample E/ExoPlayerImplInternal: Playback error
com.google.android.exoplayer2.ExoPlaybackException: Source error
at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:554)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:193)
at android.os.HandlerThread.run(HandlerThread.java:65)
Caused by: com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 416
at com.google.android.exoplayer2.upstream.DefaultHttpDataSource.open(DefaultHttpDataSource.java:341)
at com.google.android.exoplayer2.upstream.DefaultDataSource.open(DefaultDataSource.java:199)
at com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:84)
at com.google.android.exoplayer2.source.ProgressiveMediaPeriod$ExtractingLoadable.load(ProgressiveMediaPeriod.java:1017)
at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:415)
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:764)
Caused by: com.google.android.exoplayer2.upstream.DataSourceException
at com.google.android.exoplayer2.upstream.DefaultHttpDataSource.open(DefaultHttpDataSource.java:346)
at com.google.android.exoplayer2.upstream.DefaultDataSource.open(DefaultDataSource.java:199)
at com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:84)
at com.google.android.exoplayer2.source.ProgressiveMediaPeriod$ExtractingLoadable.load(ProgressiveMediaPeriod.java:1017)
at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:415)
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:764)
- ExoPlayer version number 2.12.3
- Android version pie
- Android device Panasonic Tab 8 inch
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
How To Fix the HTTP 416 Error (4 Methods) - Kinsta
416 status code is also known as “Range Not Satisfiable”. This message means that the request you made can't be fulfilled. More specifically, ......
Read more >How to Fix HTTPS Status Code 416 on PS4 - YouTube
In this video, I will show you how to fix the HTTPS status code 416 error on your PlayStation. So make sure to...
Read more >Http error: 416 - Requested Range Not Satisfiable
The 416 status code, or Requested Range Not Satisfiable error, indicates that the server cannot satisfy the request because the requested ...
Read more >apache - What are the causes of a 416 Error?
A 416 status code indicates that the server was unable to fulfill the request. This may be, for example, because the client asked...
Read more >com.google.android.exoplayer2.upstream.HttpDataSource ...
HttpDataSource$InvalidResponseCodeException : Response code: 404 ... the link than it didn't play, when I see the Logcat, I got the error
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I find it hard to understand how that could have an effect on 416 errors, but I’m happy you’ve solved your problem!
@ojw28 The issue is fixed by increasing the read and connect timeout to 30 sec, the default timeout is 8 sec.