-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Getting corrupt PDF document #144
Comments
Hi @nhet ! I opened your file with a text editor and saw some HTML at the end.
Can you give us the corresponding logs ? |
Ok, [Wed Jan 22 13:25:39 2025] [critical] Uncaught PHP Exception ErrorException: "Warning: Undefined array key "192.168.0.152"" at NativeResponse.php line 82 And the only place in the code where the IP is stored is the GOTENBERG_DSN configuration ###> sensiolabs/gotenberg-bundle ### |
Can you share us your configuration ( |
config/packages/gotenberg.yaml:
config/packages/framework.yaml
|
Some problem with the default gotenberg.yaml from your link / repro |
I reproduced this bug by editing FYI, the Symfony HttpClient chooses the best client to use depending on your machine. It prefers |
Wow, with curl extension the problem seems to be solved. thx @Jean-Beru |
Great to know it fixed it. @nhet : could you provide us the result of $ composer show symfony/http-client please ? |
Find the information attached. |
After a quick look, It could be linked to an empty content length header (really not sure) |
df5e998c-5889-4c4b-8e50-05df6998856d.pdf
Reproducer
No response
Description
Hi there,
I build up a test env along this guide https://medium.com/the-sensiolabs-tech-blog/how-to-generate-a-pdf-file-in-a-few-lines-of-code-with-symfony-39786a679d29 . I get allways a corrupt PDF. If I use a blank template file the creation works. You find the corrupt file attached.
Gotenberg Version
8.15.3
Gotenberg Bundle Version
0.3.0
The text was updated successfully, but these errors were encountered: