Skip to content

ExoPlayer "Response code: 403" (Source error). Video middle/start. (Full local mode/DASH) #7227

@executed

Description

@executed

Steps to reproduce

I would say I can reproduce the error more frequently when jumping from one video to other 5 times until the 1:00 minute mark but staying for some time on 5th or 5+nth video to observer the error.

Expected behavior

Preferred:

  • Source error does not happen during video playback.
    Also acceptable:
  • Error happens, but the playback is reloaded to same video position (at least it seems to be possible given that force-stop usually solves the issue and proceeds playing from old position).

Actual behavior

During the 1st quarter of video length/at the beginning I get "Source error" toast and video freezes.
Main error:
ExoPlayerImplInternal: Playback error
androidx.media3.exoplayer.ExoPlaybackException: Source error
Caused by: androidx.media3.datasource.HttpDataSource$InvalidResponseCodeException: Response code: 403
Video is black/stuck, permanently loading...

LibreTube version

0.27.1 (latest nightly)

Android version

Android 11 (Android TV)

Other details

One thing I've noticed is that the error is usually gone after app is force-stopped and same/other video is re-opened.
Then after couple of more videos usually in the 1st quarter of video length it pops up back again.
App force-stop - error gone again.

  • When I do constant Google CDN ping through VPN interface and "Source error" occurs I see 0% packet loss, so internet connection seems stable.
  • I would say mentioned 1:00 mark - I saw users I guess from NewPipe repo mentioning that when you not stay on video for at least a minute YT thinks you're a bot and throws 403, not sure if this is true or not.
  • Attaching related errors from logcat.
    libretube_source_error_full_local.log
  • Unfortunately I didn't succeed colleting packets via PCAPdroid to see wha's up on HTTP side.

Going through east european community 4pda I see ~10 users frustrated with this error.

Commenters input

Per user Figim:
"Http 403" (which may appear as a source error) is a playback error that occurs on all yt backends. Yt requires GVS potokens for streaming requests. NewPipe fixed this with PoToken support. (TeamNewPipe/NewPipe#11955) The PR on Libre-tube is based on this. It has not been merged yet and it is normal to have errors.
Figim additionally mentions that this issue might be duplicate of #7065.

Environment Details:
HLS: No
Full local mode: Yes
VPN: Proton Tier 0 servers through OpenVPN
DNS: Quad9 DoH with basic filtering

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions