I Want To Generate PDf Using Gotenberg and runing n8n in local using docker

I Am using n8n in docker , Generating PDF using Gutenberg i added the image of this in docker-compose.yml and access with this url http://gotenberg:3000/forms/chromium/convert/html But Same it shows the error

OutPut I Get From Previouse node is

My docker-compose.yml

My Terminal Output:

i Already Try all urls like with http:///localhost:3000, with http://46.224.27.227:3000/

But Same Error COmes

I have went very quickly on the Gotenberg docs ( Installation | Gotenberg ) and I see that you can directly call the API (http://localhost:3000) but before doing anything with n8n setup, can you please make sure that Gotenberg is already working properly, can you please run the below in the terminal:
curl \ --request POST ``https://localhost:3000/forms/chromium/convert/url`` \ --form url=https://sparksuite.github.io/simple-html-invoice-template/ \ -o my.pdf

Yeah it is Accessable

But in the n8n , HTTP Request Node it s Showing Same Error

include this part in the gotenberg service in your docker compose file:
environment:
API_PORT: “3000”

And in the http node use it like this:
http://gotenberg:3000

I have tried it and it worked, for more info, please check the API configuration here

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.