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

Perpetual timeouts and errors #192

Open
GregFdz opened this issue Jan 17, 2024 · 3 comments
Open

Perpetual timeouts and errors #192

GregFdz opened this issue Jan 17, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@GregFdz
Copy link

GregFdz commented Jan 17, 2024

Hi,
I've been using Yt-local for a while and everything was smooth. But, a few weeks ago, it started to deteriorate gradually. It began with the video crashing in the middle of playing it and I wasn't able to make it work otherwise than by reloading the page. Then it got worse by doing just that and then throwing errors when I would reload. Now, most of the time, yt-local doesn't even load and I get a timeout from my browser when I try to load a page. I didn't make any significant change to my windows os, I don't often use my PC. This is really strange...

The error :

Failed to establish a connection.

HTTPSConnectionPool(host='consent.youtube.com', port=443): Max retries exceeded with url: /m?continue=https%3A%2F%2Fm.youtube.com%2Fembed%2FlYvMc-tQvkM%3Fbpctr%3D9999999999%26cbrd%3D1&gl=FR&m=1&pc=yt&cm=2&hl=en&src=1 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001518AE17BD0>: Failed to establish a new connection: [Errno 10048] [WinError 10048] Une seule utilisation de chaque adresse de socket (protocole/adresse réseau/port) est habituellement autorisée.'))
@user234683 user234683 added help wanted Extra attention is needed good first issue Good for newcomers labels Jan 19, 2024
@user234683
Copy link
Owner

@user234683
Copy link
Owner

Edit the file youtube/watch.py. After line 417, add this line:

        ('Cookie', 'SOCS=CAI'),

image
Does this fix the issue for you? Haven't been able to reproduce with european VPN

@user234683
Copy link
Owner

Also for the other issue "It began with the video crashing in the middle of playing it and I wasn't able to make it work otherwise than by reloading the page." what video resolution were you watching at?

@user234683 user234683 added bug Something isn't working and removed help wanted Extra attention is needed good first issue Good for newcomers labels Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants