My Python/Flask app is being blocked from making outbound HTTPS requests.
aaalfifi1
FREEOP

4 months ago

Hello Railway Support Team, I am facing a critical issue with my application where it is unable to make any outbound HTTPS requests to external APIs. This is completely breaking my application's core functionality. The evidence is clear and consistent: 1. My app needs to connect to the Tap Payments API (api.tap.company) to create a payment charge. This connection is failing, so the payment process never starts. 2. My app also needs to connect to the Zoho Mail API (mail.zoho.com) to send emails. This connection is also failing. The fact that connections to multiple, unrelated external services are all failing simultaneously proves that the problem is not with my code or the external APIs. The problem must be with the networking environment of my container on Railway. This strongly suggests that a firewall, a network policy, or a security group on your platform is blocking or dropping outbound traffic on port 443 (HTTPS) from my container. This is a production-critical issue. Could you please urgently investigate the network configuration for my project and ensure that outbound HTTPS connections are fully allowed? Thank you for your immediate attention to this matter.

$10 Bounty

4 Replies

Railway
BOT

4 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


fra
HOBBYTop 10% Contributor

4 months ago

I don't think there any outbound restriction, can you share some logs?


Railway

Hey there! We've found the following might help you get unblocked faster: - [🧵 Subject: Critical Networking Issue — Outbound HTTPS Blocked on Docker App](https://station.railway.com/questions/subject-critical-networking-issue-out-d6363212) - [📚 Deploy a Flask App](https://docs.railway.com/guides/flask) - [📚 No Start Command Could be Found](https://docs.railway.com/reference/errors/no-start-command-could-be-found) If you find the answer from one of these, please let us know by solving the thread!

aaalfifi1
FREEOP

4 months ago

I have found definitive proof of the networking issue. I added a diagnostic script to my app that attempts to make outbound requests at startup.

Instead of succeeding or failing, the requests hang indefinitely. This causes the Gunicorn worker to time out and restart in an infinite loop. This is critical, as it prevents my application from even starting properly.

Here are the logs showing the repeated "WORKER TIMEOUT" errors, which happen exactly when the outbound connection test is supposed to run:[2025-11-04 17:45:27 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:7)
[2025-11-04 17:45:27 +0000] [7] [INFO] Worker exiting (pid: 7)
[2025-11-04 17:45:27 +0000] [8] [INFO] Booting worker with pid: 8
[2025-11-04 17:45:59 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:8)
[2025-11-04 17:45:59 +0000] [8] [INFO] Worker exiting (pid: 8)
[2025-11-04 17:45:59 +0000] [9] [INFO] Booting worker with pid: 9
[2025-11-04 17:46:31 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:9)
[2025-11-04 17:46:31 +0000] [9] [INFO] Worker exiting (pid: 9)This "WORKER TIMEOUT" log is the key evidence. It proves that a process within my app (the outbound request) is hanging and preventing the worker from booting. This is a classic symptom of a firewall or network policy dropping packets without sending a rejection, causing a timeout.

Please, can you urgently investigate the outbound network rules for my project? My application is completely unusable because of this.

Thank you.


aaalfifi1

I have found definitive proof of the networking issue. I added a diagnostic script to my app that attempts to make outbound requests at startup.Instead of succeeding or failing, the requests hang indefinitely. This causes the Gunicorn worker to time out and restart in an infinite loop. This is critical, as it prevents my application from even starting properly.Here are the logs showing the repeated "WORKER TIMEOUT" errors, which happen exactly when the outbound connection test is supposed to run:[2025-11-04 17:45:27 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:7)[2025-11-04 17:45:27 +0000] [7] [INFO] Worker exiting (pid: 7)[2025-11-04 17:45:27 +0000] [8] [INFO] Booting worker with pid: 8[2025-11-04 17:45:59 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:8)[2025-11-04 17:45:59 +0000] [8] [INFO] Worker exiting (pid: 8)[2025-11-04 17:45:59 +0000] [9] [INFO] Booting worker with pid: 9[2025-11-04 17:46:31 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:9)[2025-11-04 17:46:31 +0000] [9] [INFO] Worker exiting (pid: 9)This "WORKER TIMEOUT" log is the key evidence. It proves that a process within my app (the outbound request) is hanging and preventing the worker from booting. This is a classic symptom of a firewall or network policy dropping packets without sending a rejection, causing a timeout.Please, can you urgently investigate the outbound network rules for my project? My application is completely unusable because of this.Thank you.

4 months ago

Can you share your source code? Railway is not blocking this. What's the error code? We need more than just a worker timeout here.


Loading...