-
Notifications
You must be signed in to change notification settings - Fork 9
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
ECONNECTREFUSED ERROR #44
Comments
Hello! Did you actually launch Gotenberg instance on localhost, port 3000? |
i am running my node Js application on port 3001 and my front end react on
port 3006
…On Wed, May 25, 2022, 10:59 AM Victor ***@***.***> wrote:
Hello! Did you actually launch Gotenberg instance on localhost, port 3000?
—
Reply to this email directly, view it on GitHub
<#44 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUXREYRE5CIB33ZJQMCUF63VLW6S3ANCNFSM5W3IVN5Q>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This library is a client for Gotenberg, and cannot be used without it. Although this library is not fully compatible with latest Gotenberg version, there are ways to use it anyway. |
i have install it on my express server with npm install gotenberg-js-client and import modules according to your latest documentation and error arise of ecconecrefused on port localhost:3000 |
And also you need to run Gotenberg itself, on localhost, port 3000.
|
thanks |
pipe(
gotenberg(''), // any string here, will be overridden
convert, // it is save to remove this line, if you want
office,
adjust({
// manually adjust endpoint
url: 'http://localhost:3500/forms/libreoffice/convert',
}),
please
)
What about now for this url at what endpoint should we run our docker on
either on localhost:3000 or localhost:3500
…On Wed, May 25, 2022, 8:55 PM Victor ***@***.***> wrote:
And also you need to run Gotenberg itself, on localhost, port 3000.
Like this:
docker run --rm -p 3000:3000 thecodingmachine/gotenberg:6
—
Reply to this email directly, view it on GitHub
<#44 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUXREYWSRSAFIYJ5HQ2LQ2TVLZENHANCNFSM5W3IVN5Q>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This is up to you and your environment setup. If you run Gotenberg on port Note, if you use docker image If you use docker image |
ECCENECT refused error ocurred on
const toPDF = pipe(gotenberg('http://localhost:3000/forms/chromium'),convert,html,please)
toPDF('...').catch(error=>{console.log(error)})
The text was updated successfully, but these errors were encountered: