{"action":"opened","issue":{"url":"https://api.github.com/repos/moshe/elasticsearch_loader/issues/43","repository_url":"https://api.github.com/repos/moshe/elasticsearch_loader","labels_url":"https://api.github.com/repos/moshe/elasticsearch_loader/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/moshe/elasticsearch_loader/issues/43/comments","events_url":"https://api.github.com/repos/moshe/elasticsearch_loader/issues/43/events","html_url":"https://github.com/moshe/elasticsearch_loader/issues/43","id":371796924,"node_id":"MDU6SXNzdWUzNzE3OTY5MjQ=","number":43,"title":"jsonl not working ","user":{"login":"danyaljj","id":2441454,"node_id":"MDQ6VXNlcjI0NDE0NTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/2441454?v=4","gravatar_id":"","url":"https://api.github.com/users/danyaljj","html_url":"https://github.com/danyaljj","followers_url":"https://api.github.com/users/danyaljj/followers","following_url":"https://api.github.com/users/danyaljj/following{/other_user}","gists_url":"https://api.github.com/users/danyaljj/gists{/gist_id}","starred_url":"https://api.github.com/users/danyaljj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danyaljj/subscriptions","organizations_url":"https://api.github.com/users/danyaljj/orgs","repos_url":"https://api.github.com/users/danyaljj/repos","events_url":"https://api.github.com/users/danyaljj/events{/privacy}","received_events_url":"https://api.github.com/users/danyaljj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-19T03:50:56Z","updated_at":"2018-10-19T03:50:56Z","closed_at":null,"author_association":"NONE","body":"I am trying to load a collection of json files. \r\n\r\nHere is the content of my jsonl file: \r\n```\r\n{\"text\":\"When did the Scholastic Magazine of Notre dame begin publishing?\",\"pIdx\":0,\"qIdx\":0}\r\n{\"text\":\"How often is Notre Dame's the Juggler published?\",\"pIdx\":0,\"qIdx\":1}\r\n```\r\n\r\nand here is the error I am getting: \r\n```\r\nhuntsman-ve500-0792:other daniel$ elasticsearch_loader --index questions --type train json squad_train_questions2.jsonl \r\nTraceback (most recent call last):\r\n  File \"/Users/daniel/miniconda3/bin/elasticsearch_loader\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/Users/daniel/miniconda3/lib/python3.7/site-packages/elasticsearch_loader/__init__.py\", line 160, in main\r\n    cli()\r\n  File \"/Users/daniel/miniconda3/lib/python3.7/site-packages/click/core.py\", line 722, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/Users/daniel/miniconda3/lib/python3.7/site-packages/click/core.py\", line 697, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/Users/daniel/miniconda3/lib/python3.7/site-packages/click/core.py\", line 1066, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"/Users/daniel/miniconda3/lib/python3.7/site-packages/click/core.py\", line 895, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"/Users/daniel/miniconda3/lib/python3.7/site-packages/click/core.py\", line 535, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/Users/daniel/miniconda3/lib/python3.7/site-packages/click/decorators.py\", line 17, in new_func\r\n    return f(get_current_context(), *args, **kwargs)\r\n  File \"/Users/daniel/miniconda3/lib/python3.7/site-packages/elasticsearch_loader/__init__.py\", line 136, in _json\r\n    lines = chain(*(json.load(x) for x in files))\r\n  File \"/Users/daniel/miniconda3/lib/python3.7/site-packages/elasticsearch_loader/__init__.py\", line 136, in <genexpr>\r\n    lines = chain(*(json.load(x) for x in files))\r\n  File \"/Users/daniel/miniconda3/lib/python3.7/json/__init__.py\", line 296, in load\r\n    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)\r\n  File \"/Users/daniel/miniconda3/lib/python3.7/json/__init__.py\", line 348, in loads\r\n    return _default_decoder.decode(s)\r\n  File \"/Users/daniel/miniconda3/lib/python3.7/json/decoder.py\", line 340, in decode\r\n    raise JSONDecodeError(\"Extra data\", s, end)\r\njson.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 94)\r\n```\r\n"}}
{"actor":{"display_login":"danyaljj"}}