iv-org / invidious

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

[Bug] Nil assertion failed (NilAssertionError) - data_control #4449

Open HuckToohey opened 8 months ago

HuckToohey commented 8 months ago

Title: Nil assertion failed (NilAssertionError) Date: 2024-02-24T15:53:14Z Route: /data_control?referer=%2Ffeed%2Fsubscriptions Version: 2024.02.19-e8a3698 @ 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 /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 ??? ```

mrusme commented 5 months ago

Experiencing the same issue across multiple instances with the same video:

Title: `Nil assertion failed (NilAssertionError)`
Date: `2024-05-21T17:21:04Z`
Route: `/watch?v=JzOuJvw1XhU`
Version: `2024.04.27-eda7444 @ master`

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

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' 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 ???

</p>
</details>