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

Trying to load private videos causes websocket connection to close #121

Open
Phixyn opened this issue Mar 14, 2021 · 0 comments
Open

Trying to load private videos causes websocket connection to close #121

Phixyn opened this issue Mar 14, 2021 · 0 comments
Labels
bug Something is broked pls fix

Comments

@Phixyn
Copy link
Owner

Phixyn commented Mar 14, 2021

Description

A clear and concise description of what the bug is.

After trying to load a private video into the player, users are no longer able to load new videos. This happens because the connection to the websocket server is closed.

Steps to reproduce

A list of steps to reproduce the behavior.

  1. Load the page
  2. Enter the ID or URL of a private YouTube video and click Update
  3. Enter a valid ID or URL for a video and click Update

Expected behavior

A clear and concise description of what you expected to happen.

New videos should be loaded and played.

Screenshots

If applicable, add screenshots or a GIF to help demonstrate the bug.

Desktop

If using the website on desktop, please complete the following information.

  • OS [e.g. Windows]: Windows 10
  • Browser [e.g. Firefox, Chrome]: Firefox
  • Browser version [e.g. 22]: 86.0.1 (64-bit)

Mobile

If using the website on mobile, please complete the following information.

  • Device [e.g. Google Pixel]: -
  • OS: [e.g. Android 10]: -
  • Browser [e.g. Chrome]: -
  • Browser version [e.g. 22]: -

Additional information

If applicable, add any other information about the bug here.

Console log:

22:35:10.954 [INFO] Loading new video in player with ID '<removed>'.
22:35:10.955 [DEBUG] Sending request for video info to Python server.
22:35:10.964 XHRPOST https://www.youtube.com/youtubei/v1/embedded_player?key=<removed>
[HTTP/2 400 Bad Request 141ms]

22:35:11.544 [INFO] Websocket server connection closed.
22:35:11.544 close { target: WebSocket, isTrusted: true, wasClean: false, code: 1011, reason: "", srcElement: WebSocket, currentTarget: WebSocket, eventPhase: 2, bubbles: false, cancelable: false, … }
22:35:14.694 [DEBUG] Interval cleared from onPlayerStateChange.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broked pls fix
Projects
None yet
Development

No branches or pull requests

1 participant