iv-org / invidious

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

[Bug] Unexpected char '<' at line 1, column 1 (JSON::ParseException) #5039

Closed NOisgodly closed 3 weeks ago

NOisgodly commented 3 weeks ago

Title: Unexpected char '<' at line 1, column 1 (JSON::ParseException) Date: 2024-10-30T01:04:40Z Route: /watch?v=3VWviQJlez8 Version: 2024.10.28-cec3cfba @ nerdvpn

Backtrace

``` Unexpected char '<' at line 1, column 1 (JSON::ParseException) from /usr/share/crystal/src/json/lexer.cr:331:5 in 'raise' from /usr/share/crystal/src/json/lexer.cr:327:5 in 'unexpected_char' from /usr/share/crystal/src/json/lexer.cr:326:11 in 'unexpected_char' from /usr/share/crystal/src/json/lexer/io_based.cr:11:21 in 'consume_number' from /usr/share/crystal/src/json/lexer.cr:63:7 in 'next_token' from /usr/share/crystal/src/json/parser.cr:13:12 in '_post_json' from src/invidious/videos/parser.cr:58:21 in 'extract_video_info' from src/invidious/videos.cr:381:10 in 'fetch_video' from src/invidious/videos.cr:369:13 in 'get_video:region' from src/invidious/routes/watch.cr:55:15 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:141:11 in 'run' from ??? ```

m4teh commented 3 weeks ago

Just started on all videos here too. :(

Chopium commented 3 weeks ago

I've been getting this for every video.

I'm also getting frequent "you're offline" errors from the regular youtube clients that share my IP (everyone is complaining) For more context, I just run a private invidious instance for myself. Curious if anyone else is seeing those.

Could they be ip banning?

m4teh commented 3 weeks ago

Yeah I'm getting the same thing intermittently on their official web UI. I just assumed they were up to more anti-adblock shenanegans and didn't bother looking into it more since videos are still (barely) loading there.

Sommerwiesel commented 3 weeks ago

Seems to be an IP ban, if I rotate the proxies on my instance, it immediately works again.

unixfox commented 3 weeks ago

https://github.com/iv-org/invidious/issues/5032