You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Mon, Oct 21, 2024, 7:35 PM thomas-parodi ***@***.***> wrote:
it works for me, you have to fix your post request (no comma after "sam.n")
curl --request POST \
--url http://localhost:8888/api/v1/document-templates/9d4186c0-4bd0-4732-8fb0-2944132d31b1/pdfs \
--header 'content-type: application/json' \
--data '{ "variables": { "username": "sam.n" }}'
—
Reply to this email directly, view it on GitHub
<#36 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AYLFYUB44TMMRCMKMLCOPLTZ4U3NZAVCNFSM6AAAAABQAOWSLGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRXGMZDSMBZGE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
No matter what I do, I can't get the pdf to render using Gotenberg.
The PDF only ever renders with
Failed to render HTML. Error: Undefined variable $username
My template
<h2>Hello {{ $username }}</h2>
Default variables
cURL
docker log
Running with docker-compose.yml
The text was updated successfully, but these errors were encountered: