invidious icon indicating copy to clipboard operation
invidious copied to clipboard

Document is empty (XML::Error)

Open Perflyst opened this issue 4 years ago • 6 comments

I sadly don't have any channel url where this happens.
Could be related to https://github.com/iv-org/invidious/issues/1516

Backtrace:

Exception: Document is empty (XML::Error)
  from ../../../usr/share/crystal/src/xml.cr:78:5 in 'parse_html'
  from src/invidious/views/community.ecr:30:47 in '->'
  from ../../../usr/share/crystal/src/primitives.cr:255:3 in '->'
  from ../../../usr/share/crystal/src/primitives.cr:255:3 in 'process_request'
  from lib/kemal/src/kemal/route_handler.cr:17:7 in 'call'
  from ../../../usr/share/crystal/src/http/server/handler.cr:28: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: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_next'
  from src/invidious/helpers/handlers.cr:212:5 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:145:12 in 'call'
  from ../../../usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next'
  from src/invidious/helpers/handlers.cr:70:5 in 'call'
  from ../../../usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next'
  from src/invidious/helpers/static_file_handler.cr:189:11 in 'call'
  from ../../../usr/share/crystal/src/http/server/handler.cr:28: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:28:7 in 'call_next'
  from src/invidious/helpers/logger.cr:19:35 in 'call'
  from ../../../usr/share/crystal/src/http/server/handler.cr:28: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:50:11 in 'process'
  from ../../../usr/share/crystal/src/http/server.cr:513:5 in 'handle_client'
  from ../../../usr/share/crystal/src/http/server.cr:468:13 in '->'
  from ../../../usr/share/crystal/src/primitives.cr:255:3 in 'run'
  from ../../../usr/share/crystal/src/fiber.cr:92:34 in '->'
  from ???

Perflyst avatar Jan 30 '21 09:01 Perflyst

Same here make my instance out of order.

HumanG33k avatar Apr 22 '21 15:04 HumanG33k

URL Title: Document is empty (XML::Error) Date: 2021-05-30T20:31:27Z Route: /channel/UCZWadyLVO4ZnMgLrRVtS6VA/community Version: 2021.05.13-75e5b49 @ master

Backtrace

Document is empty (XML::Error)
  from /usr/share/crystal/src/xml.cr:78:5 in 'parse_html'
  from src/invidious/views/community.ecr:30:47 in '->'
  from /usr/share/crystal/src/primitives.cr:255:3 in '->'
  from /usr/share/crystal/src/primitives.cr:255:3 in 'process_request'
  from lib/kemal/src/kemal/route_handler.cr:17:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:28: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: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_next'
  from src/invidious/helpers/handlers.cr:212:5 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:145:12 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next'
  from src/invidious/helpers/handlers.cr:70:5 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next'
  from src/invidious/helpers/static_file_handler.cr:189:11 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:28: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:28:7 in 'call_next'
  from src/invidious/helpers/logger.cr:17:35 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:28: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:50:11 in 'process'
  from /usr/share/crystal/src/http/server.cr:513:5 in 'handle_client'
  from /usr/share/crystal/src/http/server.cr:468:13 in '->'
  from /usr/share/crystal/src/primitives.cr:255:3 in 'run'
  from /usr/share/crystal/src/fiber.cr:92:34 in '->'
  from ???

Mennaruuk avatar May 30 '21 20:05 Mennaruuk

It looks like some youtube edge case... The community tab is broken anyway, I hope I'll be able to work on that in the next days.

SamantazFox avatar May 30 '21 22:05 SamantazFox

Not sure if this is helpful, but in this linked comment, someone describes that this issue might have to do with channel description when it's empty. I checked the channel in this comment and also found no description.

Mennaruuk avatar May 30 '21 23:05 Mennaruuk

Not sure if this is helpful, but in this linked comment, someone describes that this issue might have to do with channel description when it's empty. I checked the channel in this comment and also found no description.

Ooooh, yep, I think I know where it comes from ^^ See https://github.com/iv-org/invidious/pull/1985#issuecomment-847794961

SamantazFox avatar Jun 01 '21 07:06 SamantazFox

This issue has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely outdated. If you think this issue is still relevant and applicable, you just have to post a comment and it will be unmarked.

github-actions[bot] avatar Aug 01 '22 12:08 github-actions[bot]