com.google.android.exoplayer.ExoPlaybackException: com.google.android.exoplayer.upstream.HttpDataSource$InvalidResponseCodeException: Response code: -1

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

If you're using ExoPlayer with Akamai, try switching to OkHttpDataSource (an ExoPlayer extension that supports OkHttp3)

Solutions on the web

via GitHub by sjyps
, 1 year ago
com.google.android.exoplayer.upstream.HttpDataSource$InvalidResponseCodeException: Response code: -1
via GitHub by kaltindas
, 1 year ago
com.google.android.exoplayer.upstream.HttpDataSource$InvalidResponseCodeException: Response code: -1
via GitHub by egemenhamutcu
, 1 year ago
com.google.android.exoplayer.upstream.HttpDataSource$InvalidResponseCodeException: Response code: -1
via GitHub by icastell
, 1 year ago
com.google.android.exoplayer.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 302
via GitHub by jboisjo
, 6 months ago
com.google.android.exoplayer.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 403
via Stack Overflow by Anon
, 11 months ago
com.google.android.exoplayer.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 429
com.google.android.exoplayer.ExoPlaybackException: com.google.android.exoplayer.upstream.HttpDataSource$InvalidResponseCodeException: Response code: -1
at com.google.android.exoplayer.upstream.DefaultHttpDataSource.open(DefaultHttpDataSource.java:210)
at com.google.android.exoplayer.extractor.ExtractorSampleSource$ExtractingLoadable.load(ExtractorSampleSource.java:824)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390)
at java.util.concurrent.FutureTask.run(FutureTask.java:234)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
at java.lang.Thread.run(Thread.java:841)

Users with the same issue

50 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
20 times, 1 year ago
8 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Know the solutions? Share your knowledge to help other developers to debug faster.