Closed slayernominee closed 1 year ago
Yep. The error appears when you enter the channel. /channel/UCQHX6ViZmPsWiYSFAyS0a3Q for example. In some cases, refreshing the page gives the expected result, but then refreshing the page again gives this error. Sections "streams", "community", "playlists", individual playlists and individual videos do not cause this error.
Perhaps, subscriptions are not updated for the same reason. I see this error on yewtu.be invidious.snoopyta and on my own instance.
Started seeing this today on my instance as well.
Same.
I'm also getting it, from log file after clicking to view a channel:
2023-03-31 15:42:20 UTC [error] YoutubeAPI: Got error 500 when requesting /youtubei/v1/browse
2023-03-31 15:42:20 UTC [error] YoutubeAPI: ExecuteQuery for ChannelMiddlewareService-GetShelves failed: RET_CHECK failure (video/youtube/channels/frontend/shared/continuations/channel_middleware_token_encodin
g.cc:15) absl::WebSafeBase64Unescape(web_safe_token, &unescaped_token) ; OneMustSucceed: input 'mw_shelf_source_exp_continuation_unwrapper'; OneMustSucceed: input 'mw_shelf_source_exp_subgraphs'; OneMustSuccee
d: input 'mw_shelf_source_exp_empty_shelf_filter'; OneMustSucceed: input 'ShelfSourceExpansion__graph'; OneMustSucceed: input 'get_shelves_shelf_candidate_rank_sorter'; OneMustSucceed: input 'wrapped_main_subg
raph'; OneMustSucceed: input 'pre_decoration_subgraph'; OneMustSucceed: input 'decoration_annotator_subgraph'; OneMustSucceed: input 'post_decoration_subgraph'; PropagateAllErrors: input 'GetShelvesEndpoint__g
raph'; PropagateAllErrors: input 'default_filter_survivor_probe_op'; PropagateAllErrors: input 'policy_enforcement_candidate_predicate'; /ChannelMiddlewareService.GetShelves RPC failed
2023-03-31 15:42:20 UTC [info] YoutubeAPI: POST data was: {"context" => {"client" => {"hl" => "en", "gl" => "US", "clientName" => "WEB", "clientVersion" => "2.20221118.01.00", "clientScreen" => "WATCH_FULL_SCR
EEN", "osName" => "Windows", "osVersion" => "10.0", "platform" => "DESKTOP"}}, "continuation" => "4qmFsgKzARIYVUN3bjJtSnpSbzU4Skx2U3ZuQWtYQ0dBGmg4Z1pHR2tSNlFnby1DaFpGWjBsSlFVTm5lVTFCUlRSSWEyZENWVUZCSlRORUVpUXd
NREF3TURBd01DMHdNREF3TFRBd01EQXRNREF3TUMwd01EQXdNREF3TURBd01EQVlBUSUzRCUzRJoCLGJyb3dzZS1mZWVkVUN3bjJtSnpSbzU4Skx2U3ZuQWtYQ0dBdmlkZW9zMTAy"}
2023-03-31 15:42:20 UTC [error] RefreshChannelsJob: UCwn2mJzRo58JLvSvnAkXCGA : Could not extract JSON. Youtube API returned error 500 with message:<br>"ExecuteQuery for ChannelMiddlewareService-GetShelves fail
ed: RET_CHECK failure (video/youtube/channels/frontend/shared/continuations/channel_middleware_token_encoding.cc:15) absl::WebSafeBase64Unescape(web_safe_token, &unescaped_token) ; OneMustSucceed: input 'mw_sh
elf_source_exp_continuation_unwrapper'; OneMustSucceed: input 'mw_shelf_source_exp_subgraphs'; OneMustSucceed: input 'mw_shelf_source_exp_empty_shelf_filter'; OneMustSucceed: input 'ShelfSourceExpansion__graph'; OneMustSucceed: input 'get_shelves_shelf_candidate_rank_sorter'; OneMustSucceed: input 'wrapped_main_subgraph'; OneMustSucceed: input 'pre_decoration_subgraph'; OneMustSucceed: input 'decoration_annotator_subgraph'; OneMustSucceed: input 'post_decoration_subgraph'; PropagateAllErrors: input 'GetShelvesEndpoint__graph'; PropagateAllErrors: input 'default_filter_survivor_probe_op'; PropagateAllErrors: input 'policy_enforcement_candidate_predicate'; /ChannelMiddlewareService.GetShelves RPC failed"
2023-03-31 15:42:20 UTC [error] RefreshChannelsJob: UCwn2mJzRo58JLvSvnAkXCGA fiber : backing off for 02:08:00s
2023-03-31 15:42:24 UTC [error] YoutubeAPI: Got error 500 when requesting /youtubei/v1/browse
2023-03-31 15:42:24 UTC [error] YoutubeAPI: ExecuteQuery for ChannelMiddlewareService-GetShelves failed: RET_CHECK failure (video/youtube/channels/frontend/shared/continuations/channel_middleware_token_encodin
g.cc:15) absl::WebSafeBase64Unescape(web_safe_token, &unescaped_token) ; OneMustSucceed: input 'mw_shelf_source_exp_continuation_unwrapper'; OneMustSucceed: input 'mw_shelf_source_exp_subgraphs'; OneMustSuccee
d: input 'mw_shelf_source_exp_empty_shelf_filter'; OneMustSucceed: input 'ShelfSourceExpansion__graph'; OneMustSucceed: input 'get_shelves_shelf_candidate_rank_sorter'; OneMustSucceed: input 'wrapped_main_subgraph'; OneMustSucceed: input 'pre_decoration_subgraph'; OneMustSucceed: input 'decoration_annotator_subgraph'; OneMustSucceed: input 'post_decoration_subgraph'; PropagateAllErrors: input 'GetShelvesEndpoint__graph'; PropagateAllErrors: input 'default_filter_survivor_probe_op'; PropagateAllErrors: input 'policy_enforcement_candidate_predicate'; /ChannelMiddlewareService.GetShelves RPC failed
2023-03-31 15:42:24 UTC [info] YoutubeAPI: POST data was: {"context" => {"client" => {"hl" => "en", "gl" => "US", "clientName" => "WEB", "clientVersion" => "2.20221118.01.00", "clientScreen" => "WATCH_FULL_SCR
EEN", "osName" => "Windows", "osVersion" => "10.0", "platform" => "DESKTOP"}}, "continuation" => "4qmFsgKzARIYVUNsckctbU1zdWNXeE9JYWNGYXpNb0hnGmg4Z1pHR2tSNlFnby1DaFpGWjBsSlFVTm5lVTFCUlRSSWEyZENWVUZCSlRORUVpUXdNREF3TURBd01DMHdNREF3TFRBd01EQXRNREF3TUMwd01EQXdNREF3TURBd01EQVlBUSUzRCUzRJoCLGJyb3dzZS1mZWVkVUNsckctbU1zdWNXeE9JYWNGYXpNb0hndmlkZW9zMTAy"}
Exception: Could not extract JSON. Youtube API returned error 500 with message:<br>"ExecuteQuery for ChannelMiddlewareService-GetShelves failed: RET_CHECK failure (video/youtube/channels/frontend/shared/continuations/channel_middleware_token_encoding.cc:15) absl::WebSafeBase64Unescape(web_safe_token, &unescaped_token) ; OneMustSucceed: input 'mw_shelf_source_exp_continuation_unwrapper'; OneMustSucceed: input 'mw_shelf_source_exp_subgraphs'; OneMustSucceed: input 'mw_shelf_source_exp_empty_shelf_filter'; OneMustSucceed: input 'ShelfSourceExpansion__graph'; OneMustSucceed: input 'get_shelves_shelf_candidate_rank_sorter'; OneMustSucceed: input 'wrapped_main_subgraph'; OneMustSucceed: input 'pre_decoration_subgraph'; OneMustSucceed: input 'decoration_annotator_subgraph'; OneMustSucceed: input 'post_decoration_subgraph'; PropagateAllErrors: input 'GetShelvesEndpoint__graph'; PropagateAllErrors: input 'default_filter_survivor_probe_op'; PropagateAllErrors: input 'policy_enforcement_candidate_predicate'; /ChannelMiddlewareService.GetShelves RPC failed" (InfoException)
from src/invidious/yt_backend/youtube_api.cr:623:7 in '_post_json'
from src/invidious/channels/videos.cr:104:12 in 'videos'
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:28:7 in 'call'
from /usr/share/crystal/src/http/server/handler.cr:28: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:28:7 in 'call'
from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next'
from src/invidious/helpers/handlers.cr:94:12 in 'call'
from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next'
from src/invidious/helpers/handlers.cr:151:29 in 'call'
from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call'
from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next'
from src/ext/kemal_static_file_handler.cr:106:36 in 'call'
from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call'
from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call'
from /usr/share/crystal/src/http/server/handler.cr:28: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:500:5 in '->'
from /usr/share/crystal/src/fiber.cr:146:11 in 'run'
from ???
2023-03-31 15:42:24 UTC [warn] i18n: Missing translation key "Could not extract JSON. Youtube API returned error 500 with message:<br>"ExecuteQuery for ChannelMiddlewareService-GetShelves failed: RET_CHECK failure (video/youtube/channels/frontend/shared/continuations/channel_middleware_token_encoding.cc:15) absl::WebSafeBase64Unescape(web_safe_token, &unescaped_token) ; OneMustSucceed: input 'mw_shelf_source_exp_continuation_unwrapper'; OneMustSucceed: input 'mw_shelf_source_exp_subgraphs'; OneMustSucceed: input 'mw_shelf_source_exp_empty_shelf_filter'; OneMustSucceed: input 'ShelfSourceExpansion__graph'; OneMustSucceed: input 'get_shelves_shelf_candidate_rank_sorter'; OneMustSucceed: input 'wrapped_main_subgraph'; OneMustSucceed: input 'pre_decoration_subgraph'; OneMustSucceed: input 'decoration_annotator_subgraph'; OneMustSucceed: input 'post_decoration_subgraph'; PropagateAllErrors: input 'GetShelvesEndpoint__graph'; PropagateAllErrors: input 'default_filter_survivor_probe_op'; PropagateAllErrors: input 'policy_enforcement_candidate_predicate'; /ChannelMiddlewareService.GetShelves RPC failed""
2023-03-31 15:42:24 UTC [info] 500 GET /channel/UClrG-mMsucWxOIacFazMoHg 144.88ms
Yes same here and tried 6 instance. None of them work anymore.
Was there an internal youtube update that caused this?
Yep. The error appears when you enter the channel. /channel/UCQHX6ViZmPsWiYSFAyS0a3Q for example. In some cases, refreshing the page gives the expected result, but then refreshing the page again gives this error. Sections "streams", "community", "playlists", individual playlists and individual videos do not cause this error.
That is because a change is being deployed to a large cluster
It seems it's related to how channels are now using the new @name
handle/moniker format by default.
New commit fixed the issue: https://github.com/iv-org/invidious/pull/3718 Please update your invidious instance.
EDIT by @unixfox: This bug affects all the invidious instances, please don't add a comment if you just want to say that you can also reproduce the same issue, thank you! Just react with a :+1:
Could not extract JSON. Youtube API returned error 500 with message: "ExecuteQuery for ChannelMiddlewareService-GetShelves failed: RET_CHECK failure (video/youtube/channels/frontend/shared/continuations/channel_middleware_token_encoding.cc:15) absl::WebSafeBase64Unescape(web_safe_token, &unescaped_token) ; OneMustSucceed: input 'mw_shelf_source_exp_continuation_unwrapper'; OneMustSucceed: input 'mw_shelf_source_exp_subgraphs'; OneMustSucceed: input 'mw_shelf_source_exp_empty_shelf_filter'; OneMustSucceed: input 'ShelfSourceExpansion__graph'; OneMustSucceed: input 'get_shelves_shelf_candidate_rank_sorter'; OneMustSucceed: input 'wrapped_main_subgraph'; OneMustSucceed: input 'pre_decoration_subgraph'; OneMustSucceed: input 'decoration_annotator_subgraph'; OneMustSucceed: input 'post_decoration_subgraph'; PropagateAllErrors: input 'GetShelvesEndpoint__graph'; PropagateAllErrors: input 'default_filter_survivor_probe_op'; PropagateAllErrors: input 'policy_enforcement_candidate_predicate'; /ChannelMiddlewareService.GetShelves RPC failed"