invidious icon indicating copy to clipboard operation
invidious copied to clipboard

[Bug] Index out of bounds (IndexError) - subscriptions

Open Pigges opened this issue 2 years ago • 9 comments

Describe the bug Can't view subscription

Steps to Reproduce Go to subscriptions feed

Logs Title: Index out of bounds (IndexError) Date: 2023-02-23T19:25:15Z Route: /feed/subscriptions Version: 2023.02.22-0995e044 @ master

Backtrace

Index out of bounds (IndexError)
  from /usr/lib/crystal/crystal/spin_lock.cr:25:5 in 'unbuffered_write'
  from lib/pg/src/pq/connection.cr:99:7 in 'send_parse_message'
  from lib/pg/src/pg/statement.cr:13:5 in 'query_all:as'
  from src/invidious/users.cr:179:18 in 'get_subscription_feed'
  from src/invidious/routes/feeds.cr:97:29 in 'subscriptions'
  from lib/kemal/src/kemal/route.cr:13:9 in '->'
  from src/invidious/helpers/handlers.cr:30:37 in 'call'
  from /usr/lib/crystal/http/server/handler.cr:28:7 in 'call'
  from /usr/lib/crystal/http/server/handler.cr:28:7 in 'call_next'
  from lib/kemal/src/kemal/filter_handler.cr:21:7 in 'call'
  from /usr/lib/crystal/http/server/handler.cr:28:7 in 'call'
  from /usr/lib/crystal/http/server/handler.cr:28:7 in 'call_next'
  from src/invidious/helpers/handlers.cr:94:12 in 'call'
  from /usr/lib/crystal/http/server/handler.cr:28:7 in 'call_next'
  from src/invidious/helpers/handlers.cr:151:29 in 'call'
  from /usr/lib/crystal/http/server/handler.cr:28:7 in 'call'
  from /usr/lib/crystal/http/server/handler.cr:28:7 in 'call_next'
  from src/ext/kemal_static_file_handler.cr:106:14 in 'call'
  from /usr/lib/crystal/http/server/handler.cr:28:7 in 'call'
  from /usr/lib/crystal/http/server/handler.cr:28:7 in 'call'
  from /usr/lib/crystal/http/server/handler.cr:28:7 in 'call'
  from /usr/lib/crystal/http/server/request_processor.cr:51:11 in 'process'
  from /usr/lib/crystal/http/server.cr:500:5 in '->'
  from /usr/lib/crystal/fiber.cr:146:11 in 'run'
  from ???

Note to Invidious team: subscriptions file sent in the private matrix channel

Pigges avatar Feb 23 '23 19:02 Pigges

Which instance are you using?

unixfox avatar Feb 23 '23 21:02 unixfox

Running my own: https://inv.pigg.es

Pigges avatar Feb 23 '23 21:02 Pigges

Did you try to recreate your account? To which channels are you subscribed so we can try to replicate the bug on our side?

unixfox avatar Feb 23 '23 21:02 unixfox

I created a new account and as soon as I imported the subscriptions I got the same problem. Where could I send you the subscriptions list?

Pigges avatar Feb 23 '23 22:02 Pigges

If you don't mind publicly sharing them you can upload them on github. You may have to compress it in zip before.

Or you can send it in private on matrix: https://matrix.to/#/@unixfox:matrix.org

unixfox avatar Feb 23 '23 23:02 unixfox

I am having the same issue if you need additional .csv files.

ghost avatar Jun 22 '23 06:06 ghost

I came to the conclusion that it was something with the watch history since it started working again when I cleared it.

Pigges avatar Jun 22 '23 19:06 Pigges

Watch history of what? I am trying this on a new instance I haven't used before, with a brand new account and no history.

ghost avatar Jun 23 '23 10:06 ghost

Same trouble here. Fresh install as docker container. Exported my CSV using Google Takeout and I get the infamous Out of bounds error. Title: Index out of bounds (IndexError) Date: 2024-06-25T18:01:57Z Route: /data_control?referer=%2Fwatch%3Fv%3Dn5827qaMhOs%26listen%3Dfalse 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 ???

sochartgit avatar Jun 25 '24 18:06 sochartgit