💾 Archived View for bbs.geminispace.org › s › Lagrange › 14432 captured on 2024-02-05 at 09:51:08. Gemini links have been rewritten to link to archived content

View Raw

More Information

➡️ Next capture (2024-03-21)

-=-=-=-=-=-=-

Lagrange crashes when fed binary file as index.gmi

Previously there was a question here, because I had no idea what was going on and I though it had something to do with localhost vs remote hosts. I was wrong.

My Lagrange on Mac becomes unresponsive when I view this link (be careful before clicking!)

gemini://blube.club

What I am serving here is simply a binary executable which I compiled from Go. The file is called index.gmi and placed at the root of the static/blube.club/ directory, served by GmCapsule.

Posted in: s/Lagrange

🐐 satch

Jan 28 · 8 days ago

3 Comments ↓

👾 fab · Jan 29 at 01:27:

Same with clagrange

🚀 skyjake [mod...] · Jan 29 at 05:17:

It does not crash for me, athough it takes quite a while for the page to finish loading. The problem here is that you are returning a "text/gemini" response whose body is 1.3 MB of binary (executable?) data. Lagrange is dutifully trying to render the contents for you as text.

You need to fix your server configuration...

There is a relevant issue for this on GitHub:

— https://github.com/skyjake/lagrange/issues/601

🐐 satch [OP] · Jan 29 at 13:12:

Okay, I knew that's what my server was doing, I just didn't know the issue was already documented. I set up ://blube.club/ that way specifically to demonstrate the Lagrange issue, not because I was trying to serve CGI from my static directory.