WebFaction
Community site: login faq

I have a Django app that makes use of the Weasyprint library to generate pdf. Recently I added a https certificate to the site, but now when I generate a pdf it doesn't load media or static files (css and images) and searching the logs I found the following error:

WARNING: Failed to load image at "https://[address]/static/image.jpg" (URLError: <urlopen error="" [ssl:="" certificate_verify_failed]="" certificate="" verify="" failed="" (_ssl.c:645)="">)

This only happens with the Weasyprint library, if I generate a html page it works without a problem

Does anyone know what it's going on?

asked 13 Mar, 10:44

Davidgp's gravatar image

Davidgp
111
accept rate: 0%

Not sure what's happening here, as we'd need to know the un-redacted URL that's throwing the error. Feel free to open a support ticket if you'd rather not share that info here.

(13 Mar, 19:53) seanf ♦♦ seanf's gravatar image

Problem solved. I screwed the SSL configuration, and the intermediate CA certificate field was not entered, so it threw that error.

permanent link

answered 14 Mar, 11:45

Davidgp's gravatar image

Davidgp
111
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×893
×86
×3

question asked: 13 Mar, 10:44

question was seen: 833 times

last updated: 14 Mar, 11:45

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2017 PARAGON INTERNET GROUP LIMITED
WEBFACTION IS A SERVICE OF PARAGON INTERNET GROUP LIMITED
REGISTERED IN ENGLAND AND WALES 7573953 - VAT REGISTRATION NUMBER 182147021
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM