SShortSingh.
Back to feed

Diagnosing and fixing HTTP 503 Service Unavailable errors across app, proxy, and Kubernetes

0
·5 views

A 503 Service Unavailable response signals that some component in the request path is deliberately refusing traffic, which differs from 502 and 504 errors. Identifying which hop issued the 503 is the first step, and this can be done by inspecting response headers, body content, and logs from the proxy, load balancer, CDN, or application. A common cause is an empty backend pool, such as Kubernetes pods failing readiness probes or load balancer targets marked unhealthy after a deploy. Rolling deployments and shutdowns can also drain the pool if new instances are slow to become ready, so the fix involves restoring at least one healthy target before addressing the underlying reason targets left. Maintenance pages left active after a window are another frequent source of unexpected 503s.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

FRANKENBAND Fuses a 1920s Theremin, 1980s Chiptune and AI Voice in a Browser Music Game

A developer built FRANKENBAND, a browser-based monster band for the Kiroween 2026 hackathon's Frankenstein category. It combines a 1920s theremin played by moving a pointer across the screen, a 1980s-style chiptune generator that turns any typed sentence into a repeatable seed-based melody, and a 2020s AI voice that announces each song on stage. The project runs entirely client-side using the Web Audio API, requiring no server, API key, or account. The melody engine was built spec-first with Kiro, and independent testing over 20,000 seeds exposed flaws that were then fixed, leaving a suite of 73 passing tests.

0
ProgrammingDEV Community ·

Rejeição 539 na NF-e: o que significa e como resolver

A rejeição 539 indica que a SEFAZ já tem uma NF-e cadastrada com o mesmo modelo, UF, CNPJ/CPF do emitente, série e número, mas com chave de acesso diferente da enviada. Segundo o Manual de Orientação do Contribuinte, a diferença pode estar no código numérico ou em outras posições da chave. Para resolver, o emissor deve verificar qual nota está registrada nesse número e consultar sua situação na SEFAZ, evitando emitir uma duplicata da mesma operação. Se o número pertence a outra nota, deve-se usar uma numeração ainda não utilizada e inutilizar as faixas que ficaram sem uso. O problema costuma surgir de reenvios com códigos numéricos aleatórios diferentes, instabilidades de comunicação ou reaproveitamento de números após restaurações de backup ou troca de sistema.

0
ProgrammingDEV Community ·

SEFAZ indisponível: como confirmar a falha e emitir NF-e em contingência

Quando a SEFAZ fica fora do ar, o primeiro passo é verificar no Portal da NF-e, na página de disponibilidade, qual web service apresenta falha, identificado por cores de acordo com o tipo de resposta. Havendo urgência na emissão, o Ajuste SINIEF 07/05 permite operar em contingência por meio da SVC, do EPEC ou do FS-DA, sem hierarquia entre elas. A SVC só pode ser usada após ativação pela SEFAZ de origem, e as notas emitidas nesse ambiente têm limitações, como o cancelamento restrito às notas que ela mesma autorizou. Já o EPEC permite a emissão quando não é possível transmitir ou obter autorização, com resumo da nota registrado no Ambiente Nacional. Em todos os casos, uma NF-e já transmitida sem resposta não pode ter seu número reaproveitado.

0
ProgrammingDEV Community ·

Database Migration Checklist: Avoiding Silent Write Failures During Host or Version Moves

Moving a database to a new host or major version often breaks in production because applications hold more connections than teams expect, including worker pools, reporting users, cron jobs and serverless functions. The article recommends inventorying every client that touches the database, measuring the real cutover window including idle connection drain time, and choosing between a read-only period and a hard cut. It also highlights risks from mismatched extensions, parameters and versions, plus stale DNS caching in connection pools that can keep old addresses alive after cutover. Finally, it advises stopping writers in a controlled order and verifying writes through the public path, since a site can appear healthy while payments, emails or webhooks fail.