Closed htt828 closed 1 year ago
my code const toPDF = pipe( gotenberg(''), convert, office, to(landscape), adjust({ url: 'http://192.168.1.40:3000/forms/libreoffice/convert', }), set(filename(fileName + '.pdf')), please ); const pdf = await toPDF({ [fileName + '.docx']: fs.createReadStream(path.resolve(wordConfigFilePath, fileName + '.docx')) });
but Error: 500 Internal Server Error at IncomingMessage.
Does Gotenberg logs some errors to stdout?
Also, does it work fine if you use curl
(or any other HTTP client) to send file directly to Gotenberg?
I'll close this issue, feel free to reopen it, if you still encounter this problem!
gotenberg
function accept address of your Gotenberg instance, for example:if you have Gotenberg running on localhost port 3000