This is an archived forum post. The information may be outdated. Contact us if you have any questions.

Fatal error: Uncaught [510] Timed out. Can't load the specified URL.

solata10 wrote on 2013-02-25:
Hello, i get this error:

Fatal error: Uncaught [510] Timed out. Can't load the specified URL. thrown in /var/www/vhosts/upn-print.si/httpdocs/pdfcrowd.php on line 442
when i try to generate 600 page pdf. it works ok for smaller pdfs.yesteday it worked. 600 page pdf was generated (4MB)

can you please check what is wrong ?



thank you very much.
support wrote on 2013-02-26:
The API aborts a conversion if it takes more than 40 seconds. In your case, it takes more than 70 seconds just to fully load the source HTML document - that's why you are getting the timeout error.

Most of the time is spent on /assets/php/printbarcode.php?code=nnn. I think you have the following options to resolve this:

1/ Make the printbarcode.php handler faster.
2/ Or serve the barcode images from a warm cache.
3/ Or split the HTML document into several smaller parts, create PDF for each part separately and then join the PDFs together using e.g. pdftk (a free tool - http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/)