Comments (2)
Hey @Zelzahn,
the error sure looks like Chromium isn't loading your asset due to the failed TLS peer verification. I would also expect --ignore-certificate-errors
in :chrome_args
to fix this, but I've never tried this and can't say why it doesn't work. Perhaps it conflicts with one of our default command line args, but not sure.
Besides debugging --ignore-certificate-errors
and making it work with ChromicPDF), here are a few options to solve your issue differently:
- Make Chromium accept your self-signed certificate. However, Chromium uses its own certificate store instead of your OS's, and the recommended method to add self-signed certificates is quite cumbersome, so this path may turn out expensive given you don't gain much besides a local TLS connection.
- Don't use a local TLS connection. For instance, you can give chromium its own (non-https) Phoenix endpoint to connect to. You should be able to reuse your existing routers + views for this (i.e. share them with your public https endpoint). Make sure to bind to
127.0.0.1
only if this is a public host. - Serve the assets differently, e.g. use
file:///
paths or embed them as data-uris.
Personally, I'd explore option 2 first. Hope this helps.
malte
from chromic_pdf.
Thanks for the swift reply! I'll try the second option, hopefully it'll then work 😄
from chromic_pdf.
Related Issues (20)
- Support dynamic names HOT 2
- Investigating the ability to navigate through POST HOT 4
- on_demand implementation sends exit signal to caller HOT 15
- GPU renderer on a headless server? HOT 2
- Timeouts on prod HOT 11
- Exception at startup on Gigalixir HOT 2
- Chromium on a different machine in the network HOT 9
- Ability to pass URL as the template source? HOT 1
- Ability to call `Emulation.setScriptExecutionDisabled` on a per-page basis? HOT 3
- Is it possible to use the service name instead of an ip address when use chrome_address? HOT 1
- Inspector.targetCrashed received when `no_sandbox: true` on Chromium 115 on Linux HOT 7
- Make checkout timeout configurable
- Changelog dates are wrong HOT 1
- websocket_debugger_url failing on windows erlang26/elixir15.7 HOT 2
- Footer is not displayed anymore with recent Chromiums HOT 23
- Troublesome PNG images? HOT 2
- Printing PDF crashes instantly before timeout HOT 13
- Thoughts regarding executing ghostscript with stderr_to_stdout: true? HOT 8
- Will this work with msEdge and Google Chrome for Testing? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chromic_pdf.