An ECONNREFUSED error means the connection to PDF.co was blocked or refused. This is usually a temporary connection issue.
Why It Happens
Temporary network problems with your ISP, router, or DNS
Short-lived connectivity interruptions between your system and PDF.co
Local firewall or security settings blocking the request
Rare server-side issues (PDF.co auto-scales servers to minimize this)
How to Fix
1. Retry the request
If you're using code → implement 2–3 retry attempts before failing
If you're using Zapier or Make → retries are already built-in
2. Check your network/firewall
Make sure nothing is blocking outbound HTTPS requests to api.pdf.co
Test the API call from another network or device
3. Check if it's recurring
If the issue happens consistently, let us know with details below.