SebastiaanKlippert / go-wkhtmltopdf

Golang commandline wrapper for wkhtmltopdf
MIT License
1.06k stars 146 forks source link

Getting QNetworkReplyHttpImplPrivate::_q_startOperation was called more than once #88

Closed kay-master closed 10 months ago

kay-master commented 2 years ago

while using the package as a service am getting this error when doing subsequent requests to the service

2022/06/01 19:13:38 QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Loading page (1/2)
QNetworkReplyHttpImplPrivate::_q_startOperation was called more than once QUrl("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500&display=swap")

on am not sure what to do

SebastiaanKlippert commented 2 years ago

I have never seen that error before to be honest. A Google search leads me to either an outdated version of wkhtmltopdf or you are running it in a Docker container without the correct dependencies.

Can you share what version of wkhtmltopdf you are using and in what OS you are running it and if that is in Docker?

And do you also get this error if you run wkhtmltopdf directly or just from my library?

Last question: With "subsequent requests to the service", what do you mean exactly? Do you have a go service that runs once and does multiple calls to wkhtmltopdf or do you run a go program multiple times? And are those parallel calls or do you wait until the previous call is completed?

Thanks