Skip to content

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

@markozajc

Description

@markozajc

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 ???

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmodule:watchWatch page-related (other than the player)type:youtube-changeGoogle changed something (again)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions