GithubHelp home page GithubHelp logo

Comments (2)

Querela avatar Querela commented on June 18, 2024

What worked, replace all https.request with http.request ... Seems kinda logical for local test instance.
BUT, just running the pdfdraw server locally works. Trying to run it in a docker container fails with

nextcloud-pdfdraw | Error receiving items {
nextcloud-pdfdraw |   error: Error: connect ECONNREFUSED 127.0.0.1:8080
nextcloud-pdfdraw |       at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1137:16) {
nextcloud-pdfdraw |     errno: -111,
nextcloud-pdfdraw |     code: 'ECONNREFUSED',
nextcloud-pdfdraw |     syscall: 'connect',
nextcloud-pdfdraw |     address: '127.0.0.1',
nextcloud-pdfdraw |     port: 8080
nextcloud-pdfdraw |   }
nextcloud-pdfdraw | }

Not exactly sure why. (Well, somehow the localhost:8080 is not reachable, but substituting it with app:80 to get the correct IP fails, too.)

Not sure whether we can just include this into code, so that it looks which Token -> iss URL is returned and if it is not HTTPS it falls back to HTTP? Makes it insecure, which for local test instances might not matter, but it is definitely not for deployment, so I don't really expect it to make it into the code base.

from pdfdraw.

fancycode avatar fancycode commented on June 18, 2024

If you run the different parts in separate Docker containers, 127.0.0.1 is each container itself, i.e. 127.0.0.1 on the pdfdraw-server is a different 127.0.0.1 than in app. You will have to configure a external URL as backend server URL of pdfdraw and vice versa.

from pdfdraw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.