When several teams ship React applications into the same platform, production issues tend to arrive as vague user reports: unexpected login prompts, noisy error logs, or slow pull request checks that nobody trusts. Instead of guessing from local setups, I started each investigation from production telemetry and measured runs.

330 false login prompts in three weeks

Users were periodically asked to sign in again while actively working. Pulling three weeks of Grafana data turned a scattered complaint into a concrete number: 330 incidents, all pointing back to silent MSAL token renewals hitting a 6-second timeout.

The tempting shortcut was to patch around the timeout inside the older 1.x version of the shared authentication library. Instead, because the platform already maintained a fixed 2.x line, I chose to migrate the application onto 2.x so the fix stayed aligned with the rest of the shared platform rather than adding another one-off workaround.

5,000 daily 401 responses from a single proxy key

Another telemetry pass showed that 97% of the application's 401 responses came from a single endpoint, roughly 5,000 failed requests every day. None of them reproduced in local development because the root cause lived only in production proxy configuration: a path mismatch between what the app requested and what the proxy forwarded.

Once the mismatch was clear, the change itself was tiny. I proposed a one-key configuration fix paired with an explicit rollback path, so operations could revert immediately if any downstream route behaved unexpectedly.

Measuring 30 CI runs before touching the pipeline

Pull request validation had also become a bottleneck. Rather than tweaking settings by intuition, I measured 30 consecutive PR-validation runs to see where time and failures actually came from.

Two real problems stood out: a static analysis step that was running out of memory, and a broken dependency cache. Fixing the out-of-memory step and restoring the cache cut dependency installation from 2 minutes 20 seconds down to 22 seconds. Just as useful, the measurements showed that three proposed test-runner tunings delivered no real gain, so I dropped them instead of adding complexity for nothing.

Reviewing for failure modes

The same habit carried into code review. While reviewing pull requests for edge cases rather than style alone, I caught an access-check cache that remained stale for 60 seconds after a user switched sites, which would have let outdated permissions linger across context changes.

Across all four issues, the common thread was simple: look at what production is actually doing, keep the fix as small and reversible as possible, and remove changes that the measurements do not justify.

Client name and project materials are confidential.

Dealing with production noise, auth failures or slow CI?

Discuss a project ↗