Good writeup, thanks! All the code snippets, when run, give me the following error message: [error: RuntimeError: abort(Error: server uses gzip or doesn't have length). Build with -s ASSERTIONS=1 for more info. (evaluating 'new WebAssembly.RuntimeError(e)')] Could that be a Mobile Safari thing?
Same error on mobile chrome on my android
Hosting SQLite Databases on GitHub Pages
11–20 of 82 posts
Re: Hosting SQLite Databases on GitHub Pages
#12[error: RuntimeError: abort(Error: Couldn't load https://phiresky.netlify.app/world-development-indicators-sq.... Status: 0). Build with -s ASSERTIONS=1 for more info.]
Other than that, is pretty awesome and exactly what I was hoping for.
Re: Hosting SQLite Databases on GitHub Pages
#13I get this error on Firefox 90.0.2 on Debian 10. It works in chrome though. [error: RuntimeError: abort(Error: Couldn't load https://phiresky.netlify.app/world-development-indicators-sq... . Status: 0). Build with -s ASSERTIONS=1 for more info.] Other than that, is pretty awesome and exactly what I was hoping for.
You can go to this version of my blog, it should work there:
https://phiresky.github.io/blog/2021/hosting-sqlite-database...
Maybe the link could be updated?
Except for the DOM demo, since those need some Cross-Site-Isolation Headers you can't set on GitHub Pages (that's the reason I mirrored it to Netlify originally)
Re: Hosting SQLite Databases on GitHub Pages
#14Re: Hosting SQLite Databases on GitHub Pages
#15Good writeup, thanks! All the code snippets, when run, give me the following error message: [error: RuntimeError: abort(Error: server uses gzip or doesn't have length). Build with -s ASSERTIONS=1 for more info. (evaluating 'new WebAssembly.RuntimeError(e)')] Could that be a Mobile Safari thing?
Yeah it's sad apple has crippled their browser the browser on a $40 android tablet is more powerful than safari running on a $1200 iPhone
Re: Hosting SQLite Databases on GitHub Pages
#16Re: Hosting SQLite Databases on GitHub Pages
#17bummer on not being able to write to sqlite. I am using neocities and was wonder how i could get a db into play
Re: Hosting SQLite Databases on GitHub Pages
#18I get this error on Firefox 90.0.2 on Debian 10. It works in chrome though. [error: RuntimeError: abort(Error: Couldn't load https://phiresky.netlify.app/world-development-indicators-sq... . Status: 0). Build with -s ASSERTIONS=1 for more info.] Other than that, is pretty awesome and exactly what I was hoping for.
Looks like Netlify changed something since I wrote this article regarding what headers they send. Detecting support for Range-requests is kinda tricky and relies on heuristics [1]. Not sure why it still works in Chrome though. You can go to this version of my blog, it should work there: https://phiresky.github.io/blog/2021/hosting-sqlite-database... Maybe the link could be updated? Except for the DOM demo, since thos…
Edit: Netlify is indeed wrong: asserts in the headers that the content length is 1024 bytes but sends up 4,583 bytes of content. That will definitely fail in Firefox.