com.google.android.exoplayer.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 403

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

com.google.android.exoplayer.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 403
at com.google.android.exoplayer.upstream.DefaultHttpDataSource.open(DefaultHttpDataSource.java:210)
at com.google.android.exoplayer.upstream.DefaultUriDataSource.open(DefaultUriDataSource.java:135)
at com.google.android.exoplayer.upstream.DataSourceInputStream.checkOpened(DataSourceInputStream.java:97)
at com.google.android.exoplayer.upstream.DataSourceInputStream.open(DataSourceInputStream.java:56)
at com.google.android.exoplayer.upstream.UriLoadable.load(UriLoadable.java:92)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

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

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