nianeyna / ao3downloader

Utility for downloading fanfiction in bulk from the Archive of Our Own
GNU General Public License v3.0
177 stars 16 forks source link

Extra data: line 1 column 95 (char 94) #166

Open RowanSkie opened 2 days ago

RowanSkie commented 2 days ago
{"error": "Extra data: line 1 column 95 (char 94)", "message": "Problem parsing log file during initial setup", "stacktrace": "Traceback (most recent call last):\n  File \"D:\\Applications\\ao3downloader\\ao3downloader\\actions\\shared.py\", line 242, in get_last_page_downloaded\n    logs = fileops.load_logfile()\n  File \"D:\\Applications\\ao3downloader\\ao3downloader\\fileio.py\", line 78, in load_logfile\n    logs.extend(list(objects))\n  File \"D:\\Applications\\ao3downloader\\ao3downloader\\fileio.py\", line 77, in <lambda>\n    objects = map(lambda x: json.loads(x), f.readlines())\n  File \"C:\\PL\\Python39\\lib\\json\\__init__.py\", line 346, in loads\n    return _default_decoder.decode(s)\n  File \"C:\\PL\\Python39\\lib\\json\\decoder.py\", line 340, in decode\n    raise JSONDecodeError(\"Extra data\", s, end)\njson.decoder.JSONDecodeError: Extra data: line 1 column 95 (char 94)\n", "timestamp": "10/01/2024, 17:17:53"}

After downloading my subscriptions, this happened.

RowanSkie commented 2 days ago

Okay, so it turns out, this is what happens when two lines in .jsonl are in the same line.