9 days ago
Hi Railway Support,
I’m encountering an issue where outgoing HTTPS requests from my Railway-hosted backend to PayPal’s live API are being blocked.
When my server calls:
PayPal returns:
403 Forbidden
Error 54113
Varnish cache server (cache-ams...)The same exact code and credentials work perfectly when run from my local machine, but fail when executed on Railway.
It seems PayPal’s edge (Varnish/CDN) is rejecting requests originating from my Railway deployment IP or region.
Could you please check whether:
The Railway server’s outgoing IP address or egress region might be blocked or restricted by PayPal?
It’s possible to change the egress IP / region or whitelist PayPal’s API endpoint (
https://api-m.paypal.com) for outbound requests?
For reference, the request uses standard HTTPS with Basic Auth and JSON — no unusual headers or payloads.
Thanks for your help!
— Ofir
2 Replies
9 days ago
You'll want to use the static IP feature, which is available to users on the Pro plan.
Status changed to Awaiting User Response Railway • 9 days ago
9 days ago
The issue seems to happen with Railway’s EU server. Enabling Static IP does not fix the issue, moving our frontend to a different region (like US East) fixes it !
Status changed to Awaiting Railway Response Railway • 9 days ago