Open future10se opened 3 months ago
Thanks for reporing this @future10se . I ran into a similar bug while working on the next release and it should be resolved in the next version, although i'm not sure it's the same. Hopefully this will be resolved.
I believe there is an issue with DB import when the page has quotes (e.g. code snippets in documentation).
I am unable to pin it down further because of #12, but I'll share what I can here.
With a DB export that just has one page (https://ai.google.dev/gemini-api/docs/api-key), importing generates the following error in the console:
(output edited for brevity)
API_KEY="YOUR_API_KEY"
API_KEY="YOUR_API_KEY"
Note the error says SQLiteError: near "YOUR_API_KEY": syntax error, suggesting that the quote marks in the page content are being parsed as part of the DB import.
The DB export looks like valid JSON (though I've not validated it matches the expected structure), so the issue might be part of the import side rather than a lack of escaping quotes in the export.
Tested in Firefox, Brave, and Edge.