Gracefully handling all nix evaluation failures. #464

Closed
opened 2023-11-04 12:27:51 +00:00 by hsjobeki · 1 comment
Owner

Currently many nix runtime / evaltime failures result in "Internal Server Error 500"

We should at least catch all those errors and gracefully report them without crashing the server.

Ideally every endpoint should handle its own errors, but we should implement some "catch all" generic failure, if the specific endpoint has no specific error handling yet.

Currently many nix runtime / evaltime failures result in "Internal Server Error 500" We should at least catch all those errors and gracefully report them without crashing the server. Ideally every endpoint should handle its own errors, but we should implement some "catch all" generic failure, if the specific endpoint has no specific error handling yet.
Qubasa was assigned by hsjobeki 2023-11-04 12:27:59 +00:00
DavHau was assigned by hsjobeki 2023-11-04 12:28:04 +00:00
Owner

This is now fixed for the schema endpoint, but there is no generic mechanism in place that ensures this for all evaluations. We might want to make a nix_eval function which always throws the correct error internally.

This is now fixed for the schema endpoint, but there is no generic mechanism in place that ensures this for all evaluations. We might want to make a `nix_eval` function which always throws the correct error internally.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
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: clan/clan-core#464
No description provided.