Skip to content

ERR_URL_FETCH_FAILED β€” URL Fetch Failed

HTTP Status: 502 Retryable: Yes Automatic retry: None. The fetch is attempted once.

What the User Sees

Failed to fetch the file from the provided URL. (ERR_URL_FETCH_FAILED)

What Causes This Error

The remote server returned a non-200 HTTP response when the system attempted to download the PDF from the provided URL. The error message includes the remote server’s status code to help diagnose the issue.

Common remote server responses include: 403 Forbidden (the URL requires authentication or blocks automated access), 404 Not Found (the file was moved or deleted), 500 Internal Server Error (the remote server has issues), and 301/302 redirects to non-PDF content (the file URL redirected to a login page).

Some file hosting services block requests that do not come from a web browser by checking the User-Agent header. The system sends β€œAccessiblePDFConverter/1.0” as its User-Agent, which may be blocked by servers that only allow browser user agents.

Temporary sharing links (from Google Drive, Dropbox, OneDrive) can also fail if they have expired or if the sharing permissions were revoked.

Resolution Steps

For Users

  1. Verify the URL is correct and the file is publicly accessible. Try opening the URL in an incognito/private browser window β€” if you are prompted to sign in, the file is not publicly accessible.
  2. Download the file manually to your computer and upload it directly.
  3. If the file is behind authentication, you must download it yourself and then upload the local copy.
  4. For Google Drive links, make sure you are using the direct download URL, not the preview URL. The direct download URL format is: https://drive.google.com/uc?export=download&id=FILE_ID
  5. For Dropbox links, change ?dl=0 to ?dl=1 at the end of the URL to get the direct download link.

For Administrators

  1. The User-Agent sent is β€œAccessiblePDFConverter/1.0”. Some servers block non-standard user agents. There is no admin fix for the remote server’s behavior β€” instruct users to download manually.
  2. If a specific file hosting service is frequently causing issues, consider adding documentation about how to get direct download URLs from that service.
  3. Monitor which remote domains return errors most frequently in Grafana.
  4. The fetch does follow redirects, but if a redirect leads to a login page (HTML response), the subsequent content-type check will catch it as ERR_URL_NOT_PDF.