-
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
Pointing docker url fails #24
Comments
Hello! const convertToPdf = pipe(
gotenberg('http://gotenberg:3000')
// --8<-- I guess it should work like this, if Docker will resolve name |
Yes, it should, but weirdly enough, it didn't work. I will try something different now |
Did you change code as I suggested? Because in your code you use just |
BTW as far as I know, docker-compose puts all containers from the single |
Also, maybe Gotenberg needs some time for initialization. Compose's |
Yes, the network part is just because of the defaults that company uses on devops.
I did, but it didn't work either. To be honest, I have tried almost everything
I did a health check, but with no success. I will try to setup manually and check back to you |
@AllanPinheiroDeLima I faced a similar issue: when addressing Gotenberg that ran in Docker directly (e.g. via Postman), everything worked as expected. But with the js client library, I always got a 404 error and Gotenborg was not even reached. After a long and painful search, I figured that on my local machine were I ran the Gotenberg container, some other app was also running on port 3000! No idea why this did not resulted in some "Address in use" - nor why it worked with Postman - but as soon as changed the port, everything worked smoothly... |
@AllanPinheiroDeLima any updates? Yesterday I've published version 0.7.0, it has one fix in config merging logic, and introduces new low-level function So, you have two ways for fine tuning:
And you have third, even more powerful way to change HTTP client behaviour: |
@AllanPinheiroDeLima I'll close this issue, as far as I reckon it is related to configuration. |
I've mounted a dockerfile with all services needed on my server. But the link with gotenberg does not work. Is this the intended behavior ? Below, I'll share my actual code:
docker-compose.yml
And the script I used
Am I doing something wrong ?
The text was updated successfully, but these errors were encountered: