Error Handling
8 posts on Error Handling.

Axum "Handler<_, _> Is Not Satisfied": Eight Causes, Eight Repros
The trait bound fn(...): Handler<_, _> is not satisfied looks the same whatever you broke. I reproduced eight causes on axum 0.8.9, ran each one with and without #[axum::debug_handler], and wrote down the line that names the cause and the fix.
11 min read

Ollama "truncating input prompt": the RAG that silently ignored half its context
A RAG prompt longer than Ollama's context window gets cut from the front, the API still answers 200, and the only trace is one WARN line in the server log. A measured repro on Ollama 0.40.18 and 0.12.10, the three fixes, why /v1 ignores num_ctx, and the flag that makes it fail loudly.
12 min read

GLIBC_2.38 Not Found: a Rust Binary in debian-slim and Distroless
My Axum binary built on rust:1 ran fine on bookworm-slim. Then I added vendored OpenSSL and it died before main with version GLIBC_2.38 not found. How to read the error, the objdump line that explains it, and three fixes I built and measured.
11 min read

JSON Logs in Rust, With the Level in a Config File Instead of RUST_LOG
Structured JSON logs with tracing in a Rust backend: a log level read from the same TOML file as everything else, fields instead of sentences, the error that only shows up in tests, and the rule for which errors deserve a log line.
6 min read

My Rust Backend Exited With Code 0 While the Database Was Down
The database was down, the backend printed nothing and exited 0. Three small mistakes with map_err, unwrap and a missing .await made a failing service look healthy. How errors should travel up to main, and the one test that catches it.
6 min read

My Rust Backend Refuses to Start With a Bad Config File, On Purpose
One TOML file, read once at startup, and the backend doesn't start if a single key is wrong. Why I picked TOML, how serde does most of the validation, why the log level is an enum, and the error message that printed my whole config file.
7 min read

Backend Engineering: The Five Boundaries I Got Wrong
Every backend bug I have shipped turned out to be the same bug wearing a different costume — a boundary I assumed was enforced when nothing was enforcing it. Five real ones, with the code, the numbers, and the tell that would have caught each of them earlier.
9 min read

Wrapping a Legacy Shipping Carrier API in One Endpoint
I built a FastAPI service that turns a two-step, rate-limited carrier API into one internal endpoint — token caching, retry logic, order mapping, and an undocumented limit found the hard way.
7 min read