Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YouTube IP Ban / 403 Error #12

Open
7 tasks done
GreenMystic opened this issue Dec 20, 2024 · 23 comments
Open
7 tasks done

YouTube IP Ban / 403 Error #12

GreenMystic opened this issue Dec 20, 2024 · 23 comments
Labels
bug Something isn't working waiting changes Waiting for upstream project & fork author

Comments

@GreenMystic
Copy link

Checklist

  • I am able to reproduce the bug with the latest version.
  • I am not able to reproduce the bug with the latest version of vanilla NewPipe.
  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I have read the FAQ and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the vanilla NewPipe contribution guidelines.

Affected version

0.27.4

Steps to reproduce the bug

  1. open any video
  2. try to tap on seek bar
  3. crash

Expected behavior

bo crash

Actual behavior

crashed

Screenshots/Recordings

No response

Logs

Exception

  • User Action: play stream
  • Request: Player error[type=ERROR_CODE_IO_BAD_HTTP_STATUS] occurred while playing https://www.youtube.com/watch?v=MvTSRHB6icE
  • Content Country: ID
  • Content Language: en-
  • App Language: en
  • Service: YouTube
  • Version: 0.27.4
  • OS: Linux realme/RMX3263/RED8D1:11/RP1A.201005.001/1659717058000:user/release-keys 11 - 30
Crash log

com.google.android.exoplayer2.ExoPlaybackException: Source error
	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:644)
	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:616)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:223)
	at android.os.HandlerThread.run(HandlerThread.java:67)
Caused by: com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 403
	at org.schabi.newpipe.player.datasource.YoutubeHttpDataSource.open(YoutubeHttpDataSource.java:422)
	at com.google.android.exoplayer2.upstream.DefaultDataSource.open(DefaultDataSource.java:263)
	at com.google.android.exoplayer2.upstream.TeeDataSource.open(TeeDataSource.java:52)
	at com.google.android.exoplayer2.upstream.cache.CacheDataSource.openNextSource(CacheDataSource.java:796)
	at com.google.android.exoplayer2.upstream.cache.CacheDataSource.open(CacheDataSource.java:609)
	at com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:84)
	at com.google.android.exoplayer2.source.chunk.ContainerMediaChunk.load(ContainerMediaChunk.java:124)
	at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:412)
	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:923)


Affected Android/Custom ROM version

A11 RUI 1.0

Affected device model

RXM 3266

Additional information

No response

@GreenMystic GreenMystic added the bug Something isn't working label Dec 20, 2024
@funsafe-ptr
Copy link

ERROR_CODE_IO_BAD_HTTP_STATUS after the 1 minute mark.

@GreenMystic
Copy link
Author

ERROR_CODE_IO_BAD_HTTP_STATUS after the 1 minute mark.

also when tap on seekbar around 5 minutes or more it's also crashing
i didn't try on vanilla yet 😅

@funsafe-ptr
Copy link

Vanilla, too, I guess.
TeamNewPipe/NewPipe#11803

@GreenMystic
Copy link
Author

Vanilla, too, I guess. TeamNewPipe/NewPipe#11803

i see gonna follow up hopefully it's will be done soon

@funsafe-ptr
Copy link

It's probably YouTube acting up again.

@GreenMystic

This comment has been minimized.

@funsafe-ptr

This comment has been minimized.

@GreenMystic

This comment has been minimized.

@asandikci
Copy link
Member

I could not reproduce the problem yet. Probably youtube doing smth. I've subscribed to upstream issue. I'll merge if upstream project solves the problem.

There is nothing that I can do. I'm not closing the issue for now because to not forget the problem

@funsafe-ptr
Copy link

Yeah, I guess YouTube is doing this in some countries. I can easily bypass this by changing my VPN country.

@GreenMystic
Copy link
Author

Yeah, I guess YouTube is doing this in some countries. I can easily bypass this by changing my VPN country.

i know this approach since few days ago but of course YouTube will not let us go away that easily you can watch content with VPN but now there's a error like sign in to confirm that you are not robot 🗿

so my approach is:
pipepipe + sign in + VPN = work

@funsafe-ptr
Copy link

Yes, sign in.
Is it possible to add login cookie from PipePipe @asandikci 🙏 ? Restricted videos won’t play unless you sign in.

@GreenMystic
Copy link
Author

GreenMystic commented Dec 23, 2024

Yes, sign in. Is it possible to add login cookie from PipePipe @asandikci 🙏 ? Restricted videos won’t play unless you sign in.

or maybe take grayjay.app as references
somehow they able to workaround that sh#tty things without need login even though it's break as well now

i mean we wait till grayjay able to do their magic so we can take their code so we can watch those restricted content without login

@funsafe-ptr
Copy link

funsafe-ptr commented Dec 23, 2024

Yes, YouTube nuked it, not possible now.
futo-org/grayjay-android#1423 (comment)
TeamNewPipe/NewPipe#11382 (comment)

@GreenMystic

This comment has been minimized.

@asandikci
Copy link
Member

asandikci commented Dec 23, 2024

I just saw grayjay now. Seems good but has a interesting license... Maybe I can try it in my free time and got some new ideas from it.

I know pipepipe has been implemented youtube login. I do not prefer to use yt login but if this problem couldn't be solved by anyone (possibly newpipe/yt-dlp teams) maybe it would be good to implement this, at least on to extended branch.

But it would not be easy becaus pipepipe is a hard fork and I do not have enough time to merge it without any errors. (also project-laspipebender- is in maintainence mode, see roadmap/project status subject in discussions)

If you want to help PRs are welcome

TL;DR
Waiting for upstream project's solutions to merge with one click, I do not have enough time to implement another thing myself

@funsafe-ptr

This comment has been minimized.

@asandikci

This comment has been minimized.

@asandikci asandikci changed the title crash when seek on seekbar 403 error Dec 24, 2024
@funsafe-ptr

This comment has been minimized.

@asandikci

This comment has been minimized.

@asandikci
Copy link
Member

There isn't any update on NewPipe side. PipePipe has been solved this problem with changing the parse method but the new parse method is really slow.

@asandikci asandikci changed the title 403 error YouTube IP Ban / 403 Error Jan 10, 2025
@asandikci asandikci added the waiting changes Waiting for upstream project & fork author label Jan 10, 2025
@GreenMystic
Copy link
Author

GreenMystic commented Jan 20, 2025

turn out pipepipe finaly able to fully fix at 4.1.2 release no random error and loading is much faster

@asandikci
Copy link
Member

Looked for changes in PipePipe but couldn't undestand. Sorry. Waiting for NewPipe to merge.
If you are able understand and merge to this fork. PRs are welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting changes Waiting for upstream project & fork author
Projects
None yet
Development

No branches or pull requests

3 participants