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] Unexpected char 'I' at line 1, column 1 (JSON::ParseException) #3593

Open
InvisibleRasta opened this issue Jan 28, 2023 · 3 comments
Open
Labels
bug Something isn't working module:imports Account data import/export

Comments

@InvisibleRasta
Copy link

InvisibleRasta commented Jan 28, 2023

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 '??'

@InvisibleRasta InvisibleRasta added the bug Something isn't working label Jan 28, 2023
@SamantazFox
Copy link
Member

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

image

@p-himik
Copy link

p-himik commented Jul 19, 2023

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.

@SamantazFox SamantazFox added the module:imports Account data import/export label Sep 10, 2023
@foxjaw
Copy link

foxjaw commented Nov 7, 2023

Happening with NewPipe import too
Title: Unexpected char 'P' at line 1, column 1 (JSON::ParseException)
Date: 2023-10-19T15:06:07Z
Route: /data_control?referer=%2Ffeed%2Fsubscriptions
Version: 2023.10.10-069e91d @ master

Backtrace

Unexpected char 'P' 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 'update_data_control'
  from lib/kemal/src/kemal/route.cr:12: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_next'
  from src/invidious/helpers/handlers.cr:151:29 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:112:11 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:146:11 in 'run'
  from ???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working module:imports Account data import/export
Projects
None yet
Development

No branches or pull requests

4 participants