iv-org / invidious

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

[Bug] Index out of bounds (IndexError) (tried to import my playlist and this happenned) #4715

Closed Zeinayyy closed 5 months ago

Zeinayyy commented 5 months ago

Describe the bug

Step to reproduce

  1. Go to 'https://invidious.lunar.icu/data_control?referer=%2Ffeed%2Fplaylists'
  2. Click on 'Import Youtube Playlist (CSV)'
  3. See error

Logs Title: Index out of bounds (IndexError) Date: 2024-05-29T10:39:33Z Route: /data_control?referer=%2Ffeed%2Fplaylists Version: 2024.04.27-eda7444 @ master

Backtrace

``` Index out of bounds (IndexError) from /usr/share/crystal/src/json/any.cr:237:3 in 'update_data_control' from lib/kemal/src/kemal/route.cr:12:9 in '->' from 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 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 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 src/ext/kemal_static_file_handler.cr:112:11 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 'handle_client' from /usr/share/crystal/src/fiber.cr:146:11 in 'run' from ??? ```

unixfox commented 5 months ago

https://github.com/iv-org/invidious/issues/4069