Open mjmare opened 5 months ago
The error is caught silently.
Yeah, weasyprint silences all errors, which can be a bit annoying to debug.
Can you try https://github.com/WhyNotHugo/django-renderpdf/pull/64 ?
Sorry, don't know how to apply this change without a new release. I'm just a simple user.
Hi
I store all my static and media files on DigitalOcean Spaces (=S3 compatible). Normally this works fine. I noticed however that a static image is not rendered in the pdf. I turned on weasyprint logging and got this:
The offending line is in helpers.py.:
base_url is not a valid property of the storage (which I have configured as S3Storage). The error is caught silently.
I was not able to work around this problem (tried a custom url_fetcher), so in the end I just embedded an SVG in the page.
TIA