3 months ago
Our app consistently gets 'Premature close' when trying to fetch https://oauth2.googleapis.com/token from Railway. Same code works locally. Appears to be an outbound network connectivity issue from our environment to Google's servers. Can you check our project's firewall/network policies?
Invalid response body while trying to fetch https://oauth2.googleapis.com/token: Premature close
3 Replies
3 months 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 • 3 months ago
3 months ago
Hey! This is unrelated to the platform, how are you fetching the tokens? Is it a node project?
3 months ago
Hey - we're getting the same, started around 9:53am PT and is now consistently getting "premature close". Works locally as well.
3 months ago
Turned out to be related to this Node issue: https://github.com/nodejs/node/issues/63989
Pinning to the patched version in Railpack and redeploying fixed it:
{
"$schema": "https://schema.railpack.com",
"packages": {
"node": "22.23.1"}
}
Status changed to Solved medim • about 2 months ago