DNS Resolution Failures - External API calls timing out
winwithtwopoint7
HOBBYOP

2 months ago

Hi Railway Team,

I'm experiencing persistent DNS resolution failures when my deployed Flask application tries to make outbound HTTPS requests to external APIs.

Issue: All external API calls fail with DNS resolution timeouts. The application cannot reach any external domains.

Error messages from logs:

Failed to resolve 'api.openai.com' ([Errno -3] Lookup timed out)

What I've tried:

  • Multiple redeploys

  • Verified the same code works correctly on local development

  • No Static IP enabled on the service

Environment:

  • Python Flask application with Gunicorn + Eventlet workers

Logs showing the issue:

ERROR:app.services.qb_api: QB Reader API request failed: HTTPSConnectionPool(host='www.qbreader.org', port=443): Max retries exceeded with url: /api/query (Caused by NameResolutionError: Failed to resolve 'www.qbreader.org' ([Errno -3] Lookup timed out))

The application starts and runs correctly - only outbound DNS resolution is failing. This appears to be an infrastructure issue with DNS servers in my deployment region.

Could you please investigate or suggest a region that has stable DNS resolution for external APIs?

Thank you.

Awaiting User Response

1 Replies

Railway
BOT

2 months ago

Hello!

We're acknowledging your issue and attaching a ticket to this thread.

We don't have an ETA for it, but, our engineering team will take a look and you will be updated as we update the ticket.

Please reply to this thread if you have any questions!


Status changed to Awaiting User Response itsrems 2 months ago


Loading...