Code Monkey home page Code Monkey logo

epdf's People

Contributors

aristovpro avatar mitranim avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

markmooibroek

epdf's Issues

unable to load localhost url in the docker container

I am using this module to generate pdf. Can you please explain anything why it's not loading the localhost url in the docker. Below is the error. Other than localhost all public urls are working. Are there any settings to enable accessing localhost in the docker.

EPDF error 8ab97c72-d19b-441f-9669-4011e8b7ebfe: Failed to load url: http://localhost:3004/preview/pdf↵ at Future.race.map.error (/usr/local/lib/node_modules/epdf/lib/epdf.js:63:11)↵ at Future.settle (/usr/local/lib/node_modules/epdf/node_modules/posterus/dist/posterus.js:151:26)↵ at Future.finishPending (/usr/local/lib/node_modules/epdf/node_modules/posterus/dist/posterus.js:217:57)↵ at finishPending (/usr/local/lib/node_modules/epdf/node_modules/posterus/dist/posterus.js:301:12)↵ at Scheduler.tick (/usr/local/lib/node_modules/epdf/node_modules/posterus/dist/posterus.js:52:17)↵ at onScheduledTick (/usr/local/lib/node_modules/epdf/node_modules/posterus/dist/posterus.js:75:15)↵ at _combinedTickCallback (internal/process/next_tick.js:131:7)↵ at process._tickCallback (internal/process/next_tick.js:180:9

how to solve Error: Command Failed problem

Hello, Nice work. When I ran npm install -g epdf and execute epdf command below error is poping up. It is executing fine in local system. My local system has 8gb ram and i5 processor. My server is having 1gb ram and 1 core cpu. I am getting issue in the server. Is this anything related to low server specs?

{ Error: Command failed: /usr/local/lib/node_modules/epdf/node_modules/electron/dist/electron /usr/local/lib/node_modules/epdf/lib/epdf.js  --out="/tmp/epdf/474a04ae-1b27-4994-8881-88ae13682275.pdf"

    at ChildProcess.exithandler (child_process.js:275:12)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Socket.stream.socket.on (internal/child_process.js:346:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:554:12)
  killed: false,
  code: 1,
  signal: null,
  cmd: '/usr/local/lib/node_modules/epdf/node_modules/electron/dist/electron /usr/local/lib/node_modules/epdf/lib/epdf.js  --out="/tmp/epdf/474a04ae-1b27-4994-8881-88ae13682275.pdf"' }

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.