iv-org / invidious

Invidious is an alternative front-end to YouTube
https://invidious.io
GNU Affero General Public License v3.0
16.38k stars 1.83k forks source link

[Bug] Missing JSON element "videoDetails" (BrokenTubeException) #3562

Closed 2011 closed 1 year ago

2011 commented 1 year ago

Describe the bug

Received message "It looks like you found a bug in Invidious!"

Steps to Reproduce

  1. Entered this URL: https://invidious.snopyta.org/watch?v=6Dm-jLBgbzE
  2. See error

Logs

Title: `Missing JSON element "videoDetails" (BrokenTubeException)`
Date: `2023-01-15T09:47:48Z`
Route: `/watch?v=6Dm-jLBgbzE`
Version: `2022.11.22-5160d8ba @ master`

<details>
<summary>Backtrace</summary>
<p>

Missing JSON element "videoDetails" (BrokenTubeException)
  from /usr/share/crystal/src/array.cr:108:31 in 'parse_video_info'
  from src/invidious/videos/parser.cr:90:12 in 'extract_video_info:video_id'
  from src/invidious/videos.cr:366:10 in 'fetch_video'
  from src/invidious/videos.cr:354:13 in 'get_video:region'
  from src/invidious/routes/watch.cr:63:15 in 'handle'
  from lib/kemal/src/kemal/route.cr:13:9 in '->'
  from /usr/share/crystal/src/primitives.cr:266:3 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next'
  from lib/kemal/src/kemal/filter_handler.cr:21:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next'
  from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next'
  from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next'
  from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next'
  from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next'
  from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next'
  from lib/kemal/src/kemal/init_handler.cr:12:7 in 'process'
  from /usr/share/crystal/src/http/server.cr:500:5 in '->'
  from /usr/share/crystal/src/primitives.cr:266:3 in 'run'
  from ???

</p>
</details>
unixfox commented 1 year ago

Duplicate of https://github.com/iv-org/invidious/issues/3402