benonymus

benonymus

Passed flag has no effect in elixir-pdf-generator

Hey,

I am using elixir-pdf-generator,
and it has been working great so far, but my docker image has been updated, and cannot set it to the old digest(elixir@sha256:d01bf3cfcea150f71fc8f729bfda0ee55b44379aa782b1221acce269ddcbe411) - this digest worked 2 days ago but not anymore…
It is an alpine image, locally on ubuntu in the container everything works.

Anyway it broke wkhtmltopdf(got updated to 0.12.6) and gives an error that says:

(MatchError) no match of right hand side value: {:error, {:generator_failed, "QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'

Now through my research I found that this issue could be solved by passing this

–enable-local-file-access

flag to wkhtmltopdf.

You are supposed to be able to pass flags throught shell_params in the pdf generator but it does not take effect.
I tried to pass it as a string and as a list of one string.

Any ideas foe either of the 2, or similar experience?

Update by adding

XDG_RUNTIME_DIR: /tmp

To the yml this error is gone, but there is a new one:

(MatchError) no match of right hand side value: {:error, {:generator_failed, "Loading page (1/2)\n[> ] 0%\r[==============> ] 24%\r"}}

This was there before too just the XDG_RUNTIME_DIR related part is gone.

Some more logs here:
https://github.com/gutschilla/elixir-pdf-generator/issues/79

Where Next?

Popular in Questions Top

minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New

Other popular topics Top

dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31586 112
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New

We're in Beta

About us Mission Statement