Worker Service Cannot Resolve Outbound DNS for api.govconapi.com
peteryelle
PROOP

a month ago

Description

Our Python worker service running on Railway (Project: ad85a3c5-8667-47c7-b34b-d2351192cd80, Service: oip-worker) is unable to make outbound HTTPS connections to the GovCon API (api.govconapi.com).

Problem:

Worker attempts to fetch opportunity scope data from GovCon API

All requests fail with NameResolutionError — DNS cannot resolve the hostname.

Environment:

Service: oip-worker (Python, Railway Pro plan, 24GB RAM)

Outbound target: api.govconapi.com:443 (HTTPS)

API Key: Set in environment variables (GOVCON_API_KEY)

Error Logs:

17:57:30 ERROR workers.busdev_prefetch [govcon_prefetch] 19AQMM20F1777: ConnectionError: HTTPSConnectionPool(host='api.govconapi.com', port=443): Max retries exceeded with url: /v0/opportunities/19AQMM20F1777 (Caused by NameResolutionError("HTTPSConnection(host='api.govconapi.com', port=443)...

17:27:00 INFO workers.sam.busdev_handler [govcon] 47QFCA21F0001: fetching https://api.govconapi.com/v0/opportunities/47QFCA21F0001

17:27:01 ERROR workers.sam.busdev_handler [govcon] 47QFCA21F0001: EXCEPTION ConnectionError: HTTPSConnectionPool(host='api.govconapi.com', port=443): Max retries exceeded with url: /v0/opportunities/47QFCA21F0001 (Caused by NameResolutionError

Request:

Please whitelist api.govconapi.com for outbound DNS resolution so our worker can reach the GovCon API.

$20 Bounty

2 Replies

Railway
BOT

a month 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 about 1 month ago


a month ago

NameResolutionError occured because requested domain, api.govconapi.com, doesn't exist, resulting in standard DNS lookup failure (NXDOMAIN)

  1. Locate where the API url is defined in your project configs/ variables and change the base from https://api.govconapi.com/v0 to https://govconapi.com/api/v1

  2. Redeploy the service with correct url to resolve DNS error also allowing python worker to successfully communicate with GovConAPI


0tik
PRO

a month ago

Hey there, I think you are working with Wrong URL ... https://govconapi.com/api/v1/opportunities/search?naics=541512&limit is the right address... Check https://govconapi.com/api-guide


Welcome!

Sign in to your Railway account to join the conversation.

Loading...