invidious
invidious copied to clipboard
[Bug] Nil assertion failed (NilAssertionError)
Title: Nil assertion failed (NilAssertionError)
Date: 2023-11-11T05:35:42Z
Route: /watch?v=h8oRkzq37-s&list=PL4h6GIo-n0q3oneJhbZDLAlUQEkTrHT-W&index=50
Version: 2023.10.26-8087e64 @ master
Backtrace
Nil assertion failed (NilAssertionError)
from /usr/lib/crystal/core/nil.cr:109 in 'not_nil!'
from /usr/lib/crystal/core/hash.cr:1080:49 in 'fetch_decrypt_function'
from src/invidious/helpers/signatures.cr:62:9 in 'decrypt_signature'
from /usr/lib/crystal/core/string.cr:5510:5 in 'fmt_stream'
from src/invidious/routes/watch.cr:120:18 in 'handle'
from lib/kemal/src/kemal/route.cr:13:9 in '->'
from lib/kemal/src/kemal/config.cr:92:7 in 'call'
from /usr/lib/crystal/core/http/server/handler.cr:30:7 in 'call'
from /usr/lib/crystal/core/http/server/handler.cr:32:7 in 'call_next'
from lib/kemal/src/kemal/filter_handler.cr:21:7 in 'call'
from /usr/lib/crystal/core/http/server/handler.cr:30:7 in 'call'
from /usr/lib/crystal/core/http/server/handler.cr:32:7 in 'call_next'
from src/invidious/helpers/handlers.cr:94:12 in 'call'
from /usr/lib/crystal/core/http/server/handler.cr:32:7 in 'call_next'
from src/invidious/helpers/handlers.cr:151:29 in 'call'
from /usr/lib/crystal/core/http/server/handler.cr:30:7 in 'call'
from /usr/lib/crystal/core/http/server/handler.cr:32:7 in 'call_next'
from src/ext/kemal_static_file_handler.cr:106:14 in 'call'
from /usr/lib/crystal/core/http/server/handler.cr:30:7 in 'call'
from /usr/lib/crystal/core/http/server/handler.cr:30:7 in 'call'
from /usr/lib/crystal/core/http/server/handler.cr:30:7 in 'call'
from /usr/lib/crystal/core/http/server/request_processor.cr:51:11 in 'handle_client'
from /usr/lib/crystal/core/fiber.cr:146:11 in 'run'
from ???
Any age-restricted video seems to cause the same issue.
It seems to be universally happening with age restriction, another example: https://inv.us.projectsegfau.lt/watch?v=LMi-xo5F8SE. Like @epic-pigeon said.
Log:
Title: Nil assertion failed (NilAssertionError)
Date: 2024-01-14T07:59:01Z
Route: /watch?v=LMi-xo5F8SE
Version: 2024.01.10-1c0b420 @ master
Backtrace
Nil assertion failed (NilAssertionError)
from /usr/share/crystal/src/nil.cr:113:7 in 'not_nil!'
from /usr/share/crystal/src/nil.cr:109:3 in 'not_nil!'
from src/invidious/helpers/signatures.cr:14:11 in 'fetch_decrypt_function'
from src/invidious/helpers/signatures.cr:62:9 in 'decrypt_signature'
from /usr/share/crystal/src/string.cr:5510:5 in 'fmt_stream'
from src/invidious/routes/watch.cr:120:18 in 'handle'
from lib/kemal/src/kemal/route.cr:13: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_next'
from src/invidious/helpers/handlers.cr:151:29 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: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 'handle_client'
from /usr/share/crystal/src/fiber.cr:146:11 in 'run'
from ???