Production outage — Claude API connection fails only on external HTTP requests
shubhamyt1989-collab
PROOP

2 days ago

Running FastAPI on Railway (ortonomy-backend-production-d1ba). All three endpoints return anthropic.APIConnectionError when called via the public Railway URL. Failure is consistent at ~4.5 seconds.

What I've ruled out:

  • Railway networking to api.anthropic.com: fine (HTTP 404 confirms TCP/TLS works)
  • API key: tested two keys, both work from console
  • SDK version: pinned to anthropic==0.69.0, works locally
  • Proxy env vars: none found
  • Region: tested US West, US East, EU West — same error all regions
  • Direct SDK call from Railway console: works perfectly
  • Full end-to-end call from Railway console: works perfectly
  • FastAPI TestClient inside Railway container: returns 200 success
  • Local server: works every time

The paradox: identical code path works via console and TestClient but fails on every external HTTP request. Outbound connections to api.anthropic.com initiated during inbound external requests are being interrupted. Started June 7 after a GitHub push triggered redeployment.

Stack: FastAPI + uvicorn, sync def endpoints, Anthropic Python SDK.

Public URL: https://ortonomy-backend-production-d1ba.up.railway.app

$20 Bounty

1 Replies

Railway
BOT

2 days ago

This thread has been opened as a public bounty so the community can help solve it. The thread and any further activity are now visible to everyone.

Status changed to Open Railway 2 days ago


Have you tried enabling outbound IPv6 in your service settings?


Welcome!

Sign in to your Railway account to join the conversation.

Loading...