[Bug] Index out of bounds (IndexError) - import/export invidious to another invidious
Describe the bug Exported a 931k data file from inv.nadeko.net onto inv.tux.pizza, comes out with “Index out of bounds”. Like how is THAT out of bounds… So we can’t export large data files to this instance anymore? It’s the only instance out of every one that does this with large files. They need to fix this.
I tried refreshing a lot of times but it still comes up with the error.
Steps to Reproduce Steps to reproduce the behavior:
- Go to 'data export'
- Click on 'export json file'
- Click on 'export’
- See error
Can you please provide the full error message?
I get the same Error while importing Youtube Subscriptions
Error:
Title: Index out of bounds (IndexError)
Date: 2025-01-19T20:15:01Z
Route: /data_control?referer=%2Ffeed%2Fpopular
Version: 2025.01.09-b13f77b5 @ master
Backtrace
Index out of bounds (IndexError)
from /usr/share/crystal/src/slice.cr:518:5 in 'copy_to'
from /usr/share/crystal/src/slice.cr:528:5 in 'copy_from'
from /usr/share/crystal/src/io/delimited.cr:116:9 in 'read_with_peek'
from /usr/share/crystal/src/io/delimited.cr:58:7 in 'read_internal'
from /usr/share/crystal/src/io/delimited.cr:201:13 in 'read_with_peek'
from /usr/share/crystal/src/io/delimited.cr:58:7 in 'read_internal'
from /usr/share/crystal/src/io/delimited.cr:53:5 in 'read'
from /usr/share/crystal/src/io.cr:286:8 in 'read_byte'
from /usr/share/crystal/src/io.cr:396:7 in 'read_utf8_byte'
from /usr/share/crystal/src/io.cr:363:7 in 'peek_or_read_utf8'
from /usr/share/crystal/src/io.cr:310:13 in 'read_char_with_bytesize'
from /usr/share/crystal/src/io.cr:309:11 in 'read_char_with_bytesize'
from /usr/share/crystal/src/io.cr:761:14 in 'gets_slow'
from /usr/share/crystal/src/io.cr:752:5 in 'gets_slow'
from /usr/share/crystal/src/io.cr:662:7 in 'gets'
from /usr/share/crystal/src/io.cr:628:5 in 'gets'
from /usr/share/crystal/src/io.cr:598:5 in 'gets'
from /usr/share/crystal/src/mime/multipart/parser.cr:89:13 in 'parse_headers'
from /usr/share/crystal/src/mime/multipart/parser.cr:65:19 in 'update_data_control'
from src/invidious/routing.cr:66:27 in '->'
from lib/kemal/src/kemal/route.cr:12:26 in '->'
from src/invidious/helpers/handlers.cr:30:37 in 'process_request'
from lib/kemal/src/kemal/route_handler.cr:17:7 in 'call'
from /usr/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 /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_next'
from src/invidious/helpers/handlers.cr:157:5 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_next'
from src/invidious/helpers/handlers.cr:146:5 in 'call'
from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call_next'
from src/invidious/helpers/handlers.cr:68:12 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_next'
from lib/kemal/src/kemal/exception_handler.cr:8:7 in 'call'
from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call_next'
from src/invidious/helpers/logger.cr:21:35 in 'call'
from /usr/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 /usr/share/crystal/src/http/server/request_processor.cr:51:11 in 'process'
from /usr/share/crystal/src/http/server.cr:521:5 in 'handle_client'
from /usr/share/crystal/src/http/server.cr:451:5 in '->'
from /usr/share/crystal/src/fiber.cr:143:11 in 'run'
from /usr/share/crystal/src/fiber.cr:95:34 in '->'
from ???
@dh2-io this is tracked in issue #4069