Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nil assertion failed (NilAssertionError) #1442

Closed
B0pol opened this issue Oct 25, 2020 · 3 comments · Fixed by #1526
Closed

Nil assertion failed (NilAssertionError) #1442

B0pol opened this issue Oct 25, 2020 · 3 comments · Fixed by #1526
Labels
bug Something isn't working type:server-side

Comments

@B0pol
Copy link
Contributor

B0pol commented Oct 25, 2020

Cannot get channel https://invidio.us/channel/UCITk7Ky4iE5_xISw9IaHqpQ

It's because you do not support redirect channels. The url you get on youtube is https://invidious.snopyta.org/channel/UCrxkwepj7-4Wz1wHyfzw-sQ. See TeamNewPipe/NewPipeExtractor#440

@TheFrenchGhosty TheFrenchGhosty changed the title Nil assertion failed Redirect channels trigger "Nil assertion failed" Oct 27, 2020
@charliebarber
Copy link

I would like to try and fix this. Do you have any more information about redirect channels?

@B0pol
Copy link
Contributor Author

B0pol commented Nov 30, 2020

Date: 2020-11-30T15:30:26Z
Route: /channel/UCITk7Ky4iE5_xISw9IaHqpQ
Version: 0.20.1-78ae9ff @ master
Backtrace:

Nil assertion failed (NilAssertionError)
  from ../../../usr/lib/crystal/nil.cr:106:5 in 'not_nil!'
  from src/invidious/channels.cr:804:12 in 'get_about_info'
  from src/invidious.cr:2475:15 in '->'
  from ../../../usr/lib/crystal/primitives.cr:255:3 in '->'
  from ../../../usr/lib/crystal/primitives.cr:255:3 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_next'
  from ../../../usr/lib/crystal/http/server/handler.cr:28:7 in 'call_next'
  from ../../../usr/lib/crystal/http/server/handler.cr:28:7 in 'call_next'
  from ../../../usr/lib/crystal/http/server/handler.cr:28:7 in 'call_next'
  from ../../../usr/lib/crystal/http/server/handler.cr:28:7 in 'call_next'
  from src/invidious/helpers/static_file_handler.cr:189:11 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_next'
  from lib/kemal/src/kemal/init_handler.cr:12:7 in 'process'
  from ../../../usr/lib/crystal/http/server.cr:498:5 in '->'
  from ../../../usr/lib/crystal/primitives.cr:255:3 in 'run'
  from ???

@B0pol
Copy link
Contributor Author

B0pol commented Nov 30, 2020

On pussthecat.org, updated to last commit, the error is now different:

Date: 2020-11-30T19:50:37Z
Route: /channel/UCITk7Ky4iE5_xISw9IaHqpQ
Version: 0.20.1-4acfd2c @ master
Backtrace:

Missing hash key: "metadata" (KeyError)
  from ../../../usr/lib/crystal/hash.cr:1030:9 in '[]'
  from src/invidious/channels.cr:804:12 in 'get_about_info'
  from src/invidious.cr:2475:15 in '->'
  from ../../../usr/lib/crystal/primitives.cr:255:3 in '->'
  from ../../../usr/lib/crystal/primitives.cr:255:3 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_next'
  from ../../../usr/lib/crystal/http/server/handler.cr:28:7 in 'call_next'
  from ../../../usr/lib/crystal/http/server/handler.cr:28:7 in 'call_next'
  from ../../../usr/lib/crystal/http/server/handler.cr:28:7 in 'call_next'
  from ../../../usr/lib/crystal/http/server/handler.cr:28:7 in 'call_next'
  from src/invidious/helpers/static_file_handler.cr:189:11 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_next'
  from lib/kemal/src/kemal/init_handler.cr:12:7 in 'process'
  from ../../../usr/lib/crystal/http/server.cr:498:5 in '->'
  from ../../../usr/lib/crystal/primitives.cr:255:3 in 'run'
  from ???

@B0pol B0pol changed the title Redirect channels trigger "Nil assertion failed" Redirect channels trigger Missing Hash Key: metadata Nov 30, 2020
@TheFrenchGhosty TheFrenchGhosty changed the title Redirect channels trigger Missing Hash Key: metadata Nil assertion failed (NilAssertionError) Dec 1, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working type:server-side
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants