apilayer / html2pdf.it

Webservice for generating pdfs from html
html2pdf.it
548 stars 157 forks source link

still ssl issue #30

Closed gurix closed 7 years ago

gurix commented 9 years ago

I am using html2pdf.it for my project and had some trouble going online.

i.e the following page https://laufbahndiagnostik.psychologie.zhaw.ch/de/helena/sessions/gXyg1rEdtVLh5lTolkO2JKNOd results

Unable to load the address (null): https://laufbahndiagnostik.psychologie.zhaw.ch/de/helena/sessions/gXyg1rEdtVLh5lTolkO2JKNOd fail

What I did then was runnning a new instance on heroku in with I ignored ssl errors with --ignore-ssl-errors=true. That seems to be the trick but indicates that my certification is wrong. But as far as I can see is everything normal.

https___laufbahndiagnostik_psychologie_zhaw_ch_de_helena_sessions_gxyg1redtvlh5ltolko2jknod

I guess the problem is phantomjs because when I run everything locally It works fine. Any idea?

sergiovalmac commented 8 years ago

I am having similar problem.

I have a dedicated web server with Plesk 11 and in which I have installed node.js and running html2pdf.it module. I have several sites in this server. When I try to convert one a page of one of these sites that has no ssl certificate, everything goes just fine. However, when I try to convert another page that does have ssl certificate, then I get the following error: Unable to load the address (null): https://www.mysite.com/pagetoconvert fail

Any idea how to fix this? Is html2pdf.it able to load ssl sites?

Thanks!

gurix commented 8 years ago

@serteckian I stopped using html2pdf and render my stuff via the gem wicked_pdf, so I avoid a separate node.js instance, therefore I can't tell any more.

sergiovalmac commented 8 years ago

I finally was able to surmount this issue with .htaccess redirections, so that any element (e.g., background image) in my PDF was loaded through http, rather than https.

Anyway, I understand your movement and thank you very much for your response.

edm00se commented 7 years ago

At this time, the above specified link in the OP is returning a 404 network response code. As html2pdf.it works with other https sites, closing this barring additional information.