Admin HTTP server exits on error #47
Labels
No labels
area/api
area/content_model
area/framework
area/infrastructure
area/io
area/presentation
area/preservation
area/rdf
area/security
area/submission
area/ui
p
critical
p
high
p
low
p
medium
s
blocked
s
done
s
progress
s
testing
s
wontfix
t
bug
t
documentation
t
enhancement
t
feature
t
test
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
scossu/pocket_archive#47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
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.
Tracked in https://github.com/EvandroLG/pegasus.lua/issues/152
Resolved upstream, waiting for a new release of Pegasus.