Hello Vercel Community,
I am facing a persistent getaddrinfo ENOTFOUND error when my Serverless Function tries to make a fetch request to a critical Saudi Arabian payment gateway API: https://rest.paylink.sa.
This issue is blocking my entire payment process. I have already confirmed that my code and environment variables are correct.
Project URL: https://who-won.vercel.app/
To prove that the issue is specific to Vercel’s network and not my code, I created a special debugging endpoint at /api/debug-connection. This endpoint attempts to connect to both the Paylink API and Google.
Here are the consistent results from the debugging endpoint:
JSON{ "paylink_connection": { "status": "Failed", "error_message": "fetch failed", "error_cause": "ENOTFOUND" }, "google_connection": { "status": "Success", "http_status": 200 } }
This data clearly demonstrates:
- My function has internet access (it can reach
google.com). - The failure is specific to resolving the
rest.paylink.sahostname.
This appears to be a DNS or networking issue within the Vercel infrastructure, specifically with resolving .sa top-level domains. Standard support has directed me here.
Could a Vercel engineer please look into this network-level problem? This is critical for my application’s functionality.
Thank you.