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

[Bug] Cast from Hash(String, JSON::Any) to Array(T) failed, at /usr/share/crystal/src/json/any.cr:262:5:262 (TypeCastError) #4801

Open
bullkang opened this issue Jul 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@bullkang
Copy link

Title: Cast from Hash(String, JSON::Any) to Array(T) failed, at /usr/share/crystal/src/json/any.cr:262:5:262 (TypeCastError)
Date: 2024-07-20T23:09:00Z
Route: /data_control?referer=%2Ffeed%2Fsubscriptions
Version: 2024.05.27-1ae14cc2 @ master

Backtrace

Cast from Hash(String, JSON::Any) to Array(T) failed, at /usr/share/crystal/src/json/any.cr:262:5:262 (TypeCastError)
  from /usr/share/crystal/src/json/any.cr:261:3 in 'as_a'
  from src/invidious/user/imports.cr:226:19 in 'from_youtube_wh'
  from src/invidious/routes/preferences.cr:324:21 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:5 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:17: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:146:11 in 'run'
  from /usr/share/crystal/src/fiber.cr:98:34 in '->'
  from ???

@bullkang bullkang added the bug Something isn't working label Jul 20, 2024
@SamantazFox
Copy link
Member

Hello! Can you please provide the file that caused this error?

If you don't want this file to be public (which is totally fine), you can share it privately over on Matrix, or by e-mail, as you prefer :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants