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

[Bug] The video returned by YouTube isn't the requested one. (Android client) (VideoNotAvailableException) #4584

Closed
markozajc opened this issue Apr 18, 2024 · 26 comments · Fixed by #4650
Labels
bug Something isn't working module:watch Watch page-related (other than the player) type:youtube-change Google changed something (again)

Comments

@markozajc
Copy link

markozajc commented Apr 18, 2024

Edit by @unixfox

The issue has been solved, please update to the latest version: https://docs.invidious.io/installation/


Describe the bug
It seems like youtube is breaking something again, similar to #4498. This only triggers rarely (probably A/B testing), but I assume it's going to get worse as time goes on.

Steps to Reproduce

  1. Open a video
  2. Therr seems to be a rare (about 1/20?) chance of getting this error The error now occurs on more or less every request

Logs
Date: 2024-04-18T23:37:57Z
Route: /watch?v=ovju1aNan54&list=PLv20rxSKTWwmqrOOaSfgLIhnuMVjzIUKj&index=47&autoplay=1&listen=true
Version: 2024.04.10-b673695a @ (HEAD detached from 5c0b6d8a)

Backtrace

The video returned by YouTube isn't the requested one. (Android client) (VideoNotAvailableException)
  from /var/cache/invidious/updater/source/src/invidious/videos/parser.cr:155:5 in 'try_fetch_streaming_data'
  from /var/cache/invidious/updater/source/src/invidious/videos/parser.cr:112:10 in 'extract_video_info:video_id'
  from /usr/share/crystal/src/hash.cr:1299:13 in 'fetch_video'
  from /var/cache/invidious/updater/source/src/invidious/videos.cr:379:13 in 'get_video:region'
  from /var/cache/invidious/updater/source/src/invidious/routes/watch.cr:55:15 in 'handle'
  from /var/cache/invidious/updater/source/lib/kemal/src/kemal/route.cr:13:9 in '->'
  from /var/cache/invidious/updater/source/src/invidious/helpers/handlers.cr:30:37 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call_next'
  from /var/cache/invidious/updater/source/lib/kemal/src/kemal/filter_handler.cr:21:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call_next'
  from /var/cache/invidious/updater/source/src/invidious/helpers/handlers.cr:94:12 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call_next'
  from /var/cache/invidious/updater/source/src/ext/kemal_static_file_handler.cr:106:14 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
  from /usr/share/crystal/src/http/server/request_processor.cr:51:11 in 'process'
  from /usr/share/crystal/src/http/server.cr:506:5 in '->'
  from /usr/share/crystal/src/fiber.cr:146:11 in 'run'
  from ???

@markozajc markozajc added the bug Something isn't working label Apr 18, 2024
@nerdfacenyan

This comment was marked as duplicate.

@markozajc

This comment was marked as off-topic.

@iBicha
Copy link
Contributor

iBicha commented Apr 19, 2024

Yup, getting this every 5-15 videos or so
I wouldn't say A/B testing, more like a slow rollout that might eventually affect everyone, but done carefully to avoid impacting official YouTube apps.

@SamantazFox

This comment was marked as duplicate.

@unixfox unixfox pinned this issue Apr 19, 2024
@SamantazFox SamantazFox added type:youtube-change Google changed something (again) module:watch Watch page-related (other than the player) labels Apr 20, 2024
@tracedgod

This comment was marked as off-topic.

@eldaniay

This comment was marked as duplicate.

@sunlightspectre
Copy link

yeah, im getting this issue as well. It seems to be happening on every video on my end.

Can also confirm.
Roughly every other video.

I want to agree with iBicha that this is a slow rollout of service-wide 'features.'
Potentially an attempt to 'unofficially' discontinue the API access through chilling effect.
For a workaround, I'd suggest waiting to see what they settle on before committing.

Provided backtrace, even though it's virtually the same as markozajc. Slightly older version aside.

Title: The video returned by YouTube isn't the requested one. (Android client) (VideoNotAvailableException)
Date: 2024-04-24T08:01:13Z
Route: /watch?v=ta-XVUkDQQg
Version: 2024.03.31-08390acd @ master

Backtrace

The video returned by YouTube isn't the requested one. (Android client) (VideoNotAvailableException)
  from src/invidious/videos/parser.cr:158:9 in 'try_fetch_streaming_data'
  from src/invidious/videos/parser.cr:111:5 in 'extract_video_info:video_id'
  from src/invidious/videos.cr:391:3 in 'fetch_video'
  from src/invidious/videos.cr:379:13 in 'get_video'
  from src/invidious/videos.cr:361:1 in 'get_video:region'
  from src/invidious/routes/watch.cr:55:15 in 'handle'
  from src/invidious/routing.cr:159:19 in '->'
  from lib/kemal/src/kemal/route.cr:12:26 in '->'
  from src/invidious/helpers/handlers.cr:30:5 in 'process_request'
  from lib/kemal/src/kemal/route_handler.cr:17:7 in 'call'
  from /snap/crystal/1927/share/crystal/src/http/server/handler.cr:30:7 in 'call_next'
  from lib/kemal/src/kemal/websocket_handler.cr:13:14 in 'call'
  from /snap/crystal/1927/share/crystal/src/http/server/handler.cr:30:7 in 'call_next'
  from lib/kemal/src/kemal/filter_handler.cr:21:7 in 'call'
  from /snap/crystal/1927/share/crystal/src/http/server/handler.cr:30:7 in 'call_next'
  from src/invidious/helpers/handlers.cr:157:5 in 'call'
  from /snap/crystal/1927/share/crystal/src/http/server/handler.cr:30:7 in 'call_next'
  from src/invidious/helpers/handlers.cr:94:12 in 'call'
  from /snap/crystal/1927/share/crystal/src/http/server/handler.cr:30:7 in 'call_next'
  from src/invidious/helpers/handlers.cr:146:5 in 'call'
  from /snap/crystal/1927/share/crystal/src/http/server/handler.cr:30:7 in 'call_next'
  from src/invidious/helpers/handlers.cr:70:5 in 'call'
  from /snap/crystal/1927/share/crystal/src/http/server/handler.cr:30:7 in 'call_next'
  from src/ext/kemal_static_file_handler.cr:162:16 in 'call'
  from /snap/crystal/1927/share/crystal/src/http/server/handler.cr:30:7 in 'call_next'
  from lib/kemal/src/kemal/exception_handler.cr:8:7 in 'call'
  from /snap/crystal/1927/share/crystal/src/http/server/handler.cr:30:7 in 'call_next'
  from src/invidious/helpers/logger.cr:17:35 in 'call'
  from /snap/crystal/1927/share/crystal/src/http/server/handler.cr:30:7 in 'call_next'
  from lib/kemal/src/kemal/init_handler.cr:12:7 in 'call'
  from /snap/crystal/1927/share/crystal/src/http/server/request_processor.cr:51:11 in 'process'
  from /snap/crystal/1927/share/crystal/src/http/server.cr:521:5 in 'handle_client'
  from /snap/crystal/1927/share/crystal/src/http/server.cr:451:5 in '->'
  from /snap/crystal/1927/share/crystal/src/fiber.cr:146:11 in 'run'
  from /snap/crystal/1927/share/crystal/src/fiber.cr:98:34 in '->'
  from ???

@olafSheeran

This comment was marked as duplicate.

@unixfox
Copy link
Member

unixfox commented Apr 24, 2024

Like said in my edit comment for the first comment, please only comment if you have new things to bring on! Thank you!
We know that it's getting more frequent.

@UltraBlackLinux

This comment was marked as duplicate.

@mas1701

This comment was marked as outdated.

@unixfox

This comment was marked as outdated.

@barelylit

This comment was marked as outdated.

@ComGreed

This comment was marked as off-topic.

@iv-org iv-org deleted a comment from Soren20244 Apr 26, 2024
@UltraBlackLinux
Copy link

UltraBlackLinux commented Apr 26, 2024

to kind of stop this flood of issues every time this problem occurs (a battle which will seemingly continue into the foreseeable future as youtube doesn't seem very keen on invidious using their services without the user watching ads) I'd suggest adding a button into the "you found a bug" screen that opens the invidious repo issue search with the error already in the search bar.
Also, I'd assume that people would be a bit less eager to report this probem if there was also a button to mark the video as watched and open it on youtube directly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working module:watch Watch page-related (other than the player) type:youtube-change Google changed something (again)
Projects
None yet