Outbound HTTPS to Google Gemini fails from Railway container (fetch failed)
eeeeano
FREEOP

19 days ago

Hello team,

I’m running a Node.js service and outbound requests to Google Gemini fail from inside the runtime container.

Symptom

- API returns 502

- Error: "Gemini analysis failed after retries: fetch failed"

In-container reproduction

node -e "fetch('https://generativelanguage.googleapis.com/v1beta/models'%29.then%28r=console.log%28'status',r.status%29%29.catch%28e=>console.error%28'err',e.message%29>)"

Output:

err fetch failed

What I already checked

- No custom proxy env vars are set (HTTP_PROXY / HTTPS_PROXY / ALL_PROXY / NO_PROXY)

- Service health endpoint is OK

- Failure appears specific to server-side outbound call to Gemini endpoint

Could you help check outbound connectivity/routing/TLS from the runtime environment to generativelanguage.googleapis.com?

Solved$10 Bounty

0 Replies

Status changed to Open Railway 19 days ago


Status changed to Solved eeeeano 19 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...