Admin HTTP server exits on error #47

Closed
opened 2026-03-02 18:55:04 +00:00 by scossu · 3 comments
Owner

The HTTP (Pegasus) server quits and stops serving requests if any function call raises an error.

There is currently a mechanism using pcall to capture the errors, but probably in the wrong place.

Alternatively, research a different web framework.

The HTTP (Pegasus) server quits and stops serving requests if any function call raises an error. There is currently a mechanism using pcall to capture the errors, but probably in the wrong place. Alternatively, research a different web framework.
scossu added this to the v1.0.0 RC milestone 2026-03-02 18:55:04 +00:00
Author
Owner

Update: an error capture mechanism had been experimented with, but not merged. Probably because it did not work properly.

In case this gets tricky to resolve, https://github.com/luanvil/mote is a potential alternative to Pegasus.

Update: an error capture mechanism had been experimented with, but not merged. Probably because it did not work properly. In case this gets tricky to resolve, https://github.com/luanvil/mote is a potential alternative to Pegasus.
Author
Owner
Tracked in https://github.com/EvandroLG/pegasus.lua/issues/152
Author
Owner

Resolved upstream, waiting for a new release of Pegasus.

Resolved upstream, waiting for a new release of Pegasus.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
scossu/pocket_archive#47
No description provided.