fast api : where to add dependencies

Summary This postmortem analyzes a subtle FastAPI dependency‑injection pitfall: attaching dependencies at the router level vs. attaching them at the function level. The issue appears trivial, yet it frequently leads to unexpected behavior, hidden performance costs, and inconsistent API semantics. Root Cause The root cause is the difference in execution scope between router‑level dependencies and … Read more

FOSS Opentelemetry storage backends that stores all metadata (value type, unit, etc.)

Summary This postmortem analyzes a recurring issue in OpenTelemetry‑based metric pipelines: the loss of metric metadata (unit, value type, instrument type) when data reaches common FOSS storage backends. Although OTLP defines rich semantic metadata, many backends silently discard it because they inherit the Prometheus data model, which historically does not preserve these attributes. The result … Read more

Cannot Start mysql.service on ubuntu after restore of files

Summary Restoring MySQL files from a backup on Ubuntu resulted in the mysql.service failing to start. The error logs indicated repeated start failures with an exit-code result, despite correct file ownership (mysql:mysql). Root Cause The restored MySQL files contained inconsistent or outdated database state files, specifically the ibdata1 and ib_logfile* files, which conflicted with the … Read more

How do you use files with spaces in a (Linux)for?

Summary This incident stemmed from attempting to rename files containing spaces using a for loop that splits on whitespace. The loop consumed filenames incorrectly, causing mv to receive malformed arguments. The core issue was unsafe shell iteration over filenames. Root Cause Using for i in $(cat file), which forces word splitting and glob expansion. Filenames … Read more

AWS Lambda cannot POST json without application/json header in the Request

Summary This incident stemmed from an AWS Lambda function receiving a POST request without a Content-Type: application/json header, causing API Gateway to treat the body as plain text and resulting in a null request body. The Lambda code attempted to deserialize this null body, triggering a Jackson IllegalArgumentException. Root Cause The failure occurred because: API … Read more

Meta Ads Tracking Parameter issue with VPS

Summary A VPS configuration issue caused URL parameters to be stripped from 30% of Facebook Ads traffic, leading to broken conversion attribution and “Unknown” visits in ad trackers (MaxConv, Skro). The problem persisted across Hostinger cloud hosting and VPS setups, indicating a server-side misconfiguration. Root Cause The root cause was Nginx misconfiguration on the VPS, … Read more

How to connecto to GStreamer pipeline

Summary Capturing the screen on KDE with Wayland requires integrating GStreamer, PipeWire, and the KDE screencast portal. The error g-io-error-quark: GDBus.Error.NotAllowed indicates a permission issue with the screencast portal, not a GStreamer pipeline problem. Root Cause Permission Denial: The KDE screencast portal requires explicit user approval for screen capture. Missing User Interaction: The portal expects … Read more

modelsummary to latex landscape

Summary Issue: Wide tables generated by modelsummary in R cannot be properly displayed in LaTeX landscape mode, causing layout issues. Goal: Embed the table in a LaTeX landscape environment alongside a section header on the same page. Root Cause modelsummary outputs tables with fixed dimensions that exceed page width in portrait mode. LaTeX landscape environment … Read more

Filter a gallery using multiple filters (text input and combobox) – Power Apps

Summary A gallery in Power Apps failed to filter correctly when combining Text Input and Combo Box criteria. The engineer attempted to use the Search() function, which only supports a single text column, causing the multi‑filter logic to break. The issue stemmed from misunderstanding how delegation, Search(), and Filter() interact in real systems. Root Cause … Read more