You might get the following error/s with wkhtmltopdf :
Error: Failed to load https://www.yoursite.com/some-pdf-gen-url/, with network status code 4 and http status code 0 – Socket operation timed out
Warning: Failed loading page
exit with code 1 due to network error: timeouterror
First, try cURLing your site:
If that fails, it is because DNS is pointing to the public IP and the network has not been configured to allowing pinning external IP Addresses.
The easiest solution is add
Then try cURL again to test. If cURL works, try to generate your PDF.