mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2060] [Issue]: remote storage IO errors map to generic 500 #1005
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#1005
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?
Originally created by @Promansis on GitHub (Jun 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2060
Originally assigned to: @cha1latte on GitHub.
Summary
Remote Runtime command-level storage
io_errorfailures currently map to generic HTTP 500 responses instead of the more actionable 503-style storage failure behavior legacy provided for read-only or locked database cases.Expected behavior
When Remote Runtime storage commands fail because the data store is unavailable, read-only, locked, or otherwise not writable at command time, the HTTP error should be specific and actionable. Legacy converted comparable storage availability failures into 503-class responses with user-facing guidance.
Actual behavior
Target 3 health/error/readiness tracing found Rust
io_errorfalls through the hostable HTTP error mapper to a generic 500. The writable/healthcheck catches some not-writable runtime states up front, but command-level storage failures can still produce less precise errors.Evidence:
src-tauri/src/http_server.rsmaps HTTP errors and currently treats genericio_erroras 500.src-tauri/crates/core/src/lib.rsdefines core app error codes including IO failures.packages/server/src/middleware/error-handler.tsconverted read-only/locked database failures into 503 with actionable copy.Steps to reproduce
/api/invokecommand.io_error.Impact area
Environment
refactor, Target 3 rescan on 2026-06-04Logs, screenshots, or video
No destructive runtime repro attached. This is static parity evidence from Target 3.
Regression notes
Legacy
mainprovided more actionable 503-class handling for storage availability failures. Refactor health readiness is stronger at startup, but command-level failure mapping still appears weaker.Additional context
Related tracker: #1904 target 3 and #2050. Suggested fix: map storage availability
io_errorcases to a stable 503-class response where appropriate, without masking unrelated internal errors.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: