Closed 4www closed 1 year ago
The browser console error in Firefox is:
constructing url database https://joblist.gitlab.io/workers/joblist.db sqlite.worker-e48eea05.js:1:11166
filename https:__joblist.gitlab.io_workers_joblist.db sqlite.worker-e48eea05.js:1:11519
constructing url database https://joblist.gitlab.io/workers/joblist.db filename https:__joblist.gitlab.io_workers_joblist.db sqlite.worker-e48eea05.js:1:11545
[xhr of size 4 KiB @ 0 KiB] sqlite.worker-e48eea05.js:1:7166
constructed vfs sqlite.worker-e48eea05.js:1:13752
[xhr of size 4 KiB @ 20 KiB] sqlite.worker-e48eea05.js:1:7166
XHRGET
https://joblist.gitlab.io/workers/joblist.db
[HTTP/2 200 OK 2440ms]
Search error. Error: SQLite: vtable constructor failed: companies_fts
handleError https://components.joblist.today/assets/sqlite.worker-e48eea05.js:1
exec https://components.joblist.today/assets/sqlite.worker-e48eea05.js:1
r https://components.joblist.today/assets/sqlite.worker-e48eea05.js:1
index-758f0db7.js:56:1092
Tried from this URL and locally.
It does not seem to be working in Firefox but it works correctly in chromium (linux).
Still unsure if the error is on my side or in the lib (sorry if that's the case).
I think the issue came from fts3
(working) vs fts5
(not working) tables See my changes here https://gitlab.com/joblist/workers/-/commit/e291a9e0ee6243ef69f04c5c6cb449f377058759
The sqlite3 database generated, should have fts3
tables to be consumes by phiresky/sql.js-httpvfs
in the frontend and have the fts
table work.
Hello! Thanks for the really cool lib!
I'm trying to use it, with a database served from a gitlab page/artifact, but it seems the library complains from the database being malformed, while when downloading it and opening it with sqlite or a db-browser it seems to work.
Stacktrace:
Console warning:
I wonder if maybe that is because of how i've got the project setup with the build tools. As it seems to be working in chromium but not firefox (testing on linux).