coleslaw-org / coleslaw

Flexible Lisp Blogware
BSD 2-Clause "Simplified" License
553 stars 82 forks source link

preview seems to fail: "Not found" displayed on navigating to the link #202

Closed johnabs closed 1 year ago

johnabs commented 1 year ago

Hi there,

I'm trying to use (coleslaw-cli:preview) to generate a preview of the site after following the tutorial on Github; however, when I navigate to the Clack web-server in firefox, I get a "Not Found" page, even though the server is registering the GET request. For context, I'm currently running this on Guix System, but used ql:quickload to install and load the package due to limitations of the version packaged for Guix.

I can confirm the /tmp/coleslaw directory has generated output present, and the appropriate number of posts, but accessing these posts via the web-server seems to fail.

Here's the output I get from the server as I try to navigate: (coleslaw-cli:preview) Starting a Clack server at /tmp/coleslaw/. Press C-c to stop it Hunchentoot server is going to start. Listening on 127.0.0.1:5000. 127.0.0.1 - [04/Feb/2023:12:07:07 -05:00] "GET /post HTTP/1.1" 404 9 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0" (repeats of the last one depending on where I try to navigate)

On Firefox, I just try to navigate to 127.0.0.1:5000, and clearly the server is up, and clearly it's responding to my requests, but all it returns is "Not found", even though there's definitely a post file, which I can open manually via the file:/// method.

If there are any other details you need from me I'll be more than happy to provide them.

Thank you very much for your time, and here's hoping I didn't find an actual bug, and it's just user error.

Best, John

johnabs commented 1 year ago

For those interested, it was a bug with running the command from sly. I've not figured this out yet, but running the command purely from sbcl worked fine.