iv-org / invidious

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

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

Open InvisibleRasta opened 1 year ago

InvisibleRasta commented 1 year ago

I have been getting this error when trying to import youtube csv subscriptions

Title: Unexpected char 'I' at line 1, column 1 (JSON::ParseException) Date: 2023-01-28T03:27:00Z Route: /data_control?referer=%2Fchannel%2FUCVS89U86PwqzNkK2qYNbk5A Version: 2023.01.27-53bf698 @ master

Backtrace

``` Unexpected char 'I' at line 1, column 1 (JSON::ParseException) from /usr/lib/crystal/core/json/lexer.cr:211 in 'raise' from /usr/lib/crystal/core/json/lexer.cr:330 in 'unexpected_char' from /usr/lib/crystal/core/json/lexer.cr:326 in 'unexpected_char' from /usr/lib/crystal/core/json/lexer/string_based.cr:63:8 in 'next_token' from /usr/lib/crystal/core/json/parser.cr:13:12 in 'update_data_control' from lib/kemal/src/kemal/route.cr:12:9 in '->' from lib/kemal/src/kemal/config.cr:92:7 in 'call' from /usr/lib/crystal/core/http/server/handler.cr:28:7 in 'call' from /usr/lib/crystal/core/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/core/http/server/handler.cr:28:7 in 'call_next' from /usr/lib/crystal/core/http/server/handler.cr:28:7 in 'call_next' from /usr/lib/crystal/core/http/server/handler.cr:28:7 in 'call_next' from /usr/lib/crystal/core/http/server/handler.cr:28:7 in 'call_next' from /usr/lib/crystal/core/http/server/handler.cr:28:7 in 'call_next' from src/ext/kemal_static_file_handler.cr:112:11 in 'call' from /usr/lib/crystal/core/http/server/handler.cr:28:7 in 'call' from /usr/lib/crystal/core/http/server/handler.cr:28:7 in 'call' from /usr/lib/crystal/core/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/core/http/server.cr:500:5 in '->' from /usr/lib/crystal/core/fiber.cr:146:11 in 'run' from /src/boringssl/src/google-boringssl-251b516/ssl/internal.h:334:8 in '??' ```

SamantazFox commented 1 year ago

Which import option did you use? What that the Import YouTube/OPML subscriptions one?

image

p-himik commented 1 year ago

Also had that issue when trying to import via the "Import YouTube playlist (.csv)" option. As a workaround, importing the same CSV file in NewPipe, exporting from NewPipe as JSON, and importing that JSON in Invidious worked just fine.

github-actions[bot] commented 3 weeks ago

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.