Comments (9)
Hey @gutschilla
I've found the issue and it's my fault. The thing is that I misunderstood my Docker file (I was kind lost on it) since we have different images there and I couldn't get the required executables in the correct environment (the one that I was receiving the error).
So, once I was in the right env I able to check that with:
System.find_executable("chrome-headless-render-pdf")
#=> nil
But I still think we could improve that somehow in the library to thrown some friendly error when the executable is not found. I will try to understand this code a little bit more and if possible, I'll propose something for that.
I really appreciated your faster answers. Thank you very much and keep up with this awesome work 🙌
from elixir-pdf-generator.
Sure, I'm still doing some investigation here and if I didn't find anything I will come up with some reproduced app. Just opened the issue to make sure I'm doing anything wrong and maybe others also are having it 😄
from elixir-pdf-generator.
@feliperenan Added you as contributer. Allow me to create the boilerplate
from elixir-pdf-generator.
@feliperenan Thanks for your investigation and congrats for solving the issue. You are right, this error should emit some friendly warning like "please check if your chrome-headless-renderer-pdf is installed correctly as I cannot find the executable on PATH" or something.
I am happy to hear you suggestions.
On a side note: if you have questions about the code let me know. The underlying base dates back to 2015/16. It's been a while.
from elixir-pdf-generator.
I'll reopen this so a PR can properly point to this.
from elixir-pdf-generator.
Alright @feliperenan thanks for opening a new issue. Please help me reproduce this error:
- Please provide the FROM-clause of your Dockerfile
- Please provide your mix.exs (deps and releases part)
Since reproducing this error by guessing you configuration is pretty time-consuming please consider granting me read access to your repo so I can at least run mix test
which should yield an error.
from elixir-pdf-generator.
Don't get me wrong – to reproduce I would have
- create project depending on
:pdf_generator
- write a call to
PdfGenerator.generate
on startup - prepare releases
- build release
- put that into a Docker container
- run it in hopes of seeing the error
I am looking for a shortcut to this :-)
from elixir-pdf-generator.
@feliperenan We could do this together in a new github repo – I'd happily proivide the basics, you jot in your configuration.
from elixir-pdf-generator.
https://github.com/gutschilla/test-pdf-generator-alpine-docker
from elixir-pdf-generator.
Related Issues (20)
- Code exemple for merge PDFS
- Doubts about maintainence
- PDFtk cannot be installed using Homebrew as mentioned in the Readme HOT 2
- Application pdf_generator exited: PdfGenerator.start(:normal, []) returned an error: shutdown: failed to start child: PdfGenerator.PathAgent HOT 2
- docs seem wrong for using chrome
- Compile on Win10
- Blank PDF being generated HOT 2
- shell_options not working as intended?
- Issue on wkhtmltopdf 0.12.6 HOT 4
- Issue with rendering images on heroku
- issue when deploying in production
- mix deps.compile not working HOT 2
- Generator_failed error HOT 4
- Heroku: (ErlangError) Erlang error: :enoent HOT 1
- Ability to create a PDF in chunks to stream it HOT 1
- How to use Tailwind CSS with elixir-pdf-generator in a Phoenix app HOT 7
- Provide compatibility with weasyprint HOT 1
- Any planned releases to officially support `prefer_local_executable` option?
- Erlang error, "invalid port name" HOT 1
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 elixir-pdf-generator.