Skip to content

Cannot run export-service in Docker Container #5

@joce007

Description

@joce007

Hi,

I'm trying to run the export-service in Docker. I'm able to built and run the Docker image and see the index.html page but as soon as I try to export to PDF button, I`ve got a connection refused. . It seems to be related to puppeteer library (see call stack below).

I've made some research and followed some recommendations on this site https://github.com/puppeteer/puppeteer/blob/master/docs/troubleshooting.md#running-puppeteer-in-docker without success. It seems to be a problem between Chromium and Puppeteer but don't know how to fix it.

CALLSTACK:

(node:1) UnhandledPromiseRejectionWarning: Error: net::ERR_CONNECTION_REFUSED at http://localhost:8080/appdata/2020-3-20-15-23-15~18a445f1-b695-4217-b657-c8549cdd450c.svg
    at navigate (/wwwnodes/npm/node_modules/@balkangraph/export-service/node_modules/puppeteer/lib/FrameManager.js:120:37)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async FrameManager.navigateFrame (/wwwnodes/npm/node_modules/@balkangraph/export-service/node_modules/puppeteer/lib/FrameManager.js:94:17)
    at async Frame.goto (/wwwnodes/npm/node_modules/@balkangraph/export-service/node_modules/puppeteer/lib/FrameManager.js:406:12)
    at async Page.goto (/wwwnodes/npm/node_modules/@balkangraph/export-service/node_modules/puppeteer/lib/Page.js:674:12)
    at async /wwwnodes/npm/node_modules/@balkangraph/export-service/app.js:187:13
  -- ASYNC --
    at Frame.<anonymous> (/wwwnodes/npm/node_modules/@balkangraph/export-service/node_modules/puppeteer/lib/helper.js:111:15)
    at Page.goto (/wwwnodes/npm/node_modules/@balkangraph/export-service/node_modules/puppeteer/lib/Page.js:674:49)
    at Page.<anonymous> (/wwwnodes/npm/node_modules/@balkangraph/export-service/node_modules/puppeteer/lib/helper.js:112:23)
    at /wwwnodes/npm/node_modules/@balkangraph/export-service/app.js:187:24
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:1) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
info: /wwwnodes/npm/node_modules/@balkangraph/export-service/appdata/2020-3-20-15-25-15~c53e9523-c12a-4343-a56a-70f6b973c0e2.svg file was saved; width: 1185; height: 860; {"timestamp":"2020-04-20T15:25:15.511Z"}
(node:1) UnhandledPromiseRejectionWarning: Error: net::ERR_CONNECTION_REFUSED at http://localhost:8080/appdata/2020-3-20-15-25-15~c53e9523-c12a-4343-a56a-70f6b973c0e2.svg
    at navigate (/wwwnodes/npm/node_modules/@balkangraph/export-service/node_modules/puppeteer/lib/FrameManager.js:120:37)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async FrameManager.navigateFrame (/wwwnodes/npm/node_modules/@balkangraph/export-service/node_modules/puppeteer/lib/FrameManager.js:94:17)
    at async Frame.goto (/wwwnodes/npm/node_modules/@balkangraph/export-service/node_modules/puppeteer/lib/FrameManager.js:406:12)
    at async Page.goto (/wwwnodes/npm/node_modules/@balkangraph/export-service/node_modules/puppeteer/lib/Page.js:674:12)
    at async /wwwnodes/npm/node_modules/@balkangraph/export-service/app.js:187:13
  -- ASYNC --
    at Frame.<anonymous> (/wwwnodes/npm/node_modules/@balkangraph/export-service/node_modules/puppeteer/lib/helper.js:111:15)
    at Page.goto (/wwwnodes/npm/node_modules/@balkangraph/export-service/node_modules/puppeteer/lib/Page.js:674:49)
    at Page.<anonymous> (/wwwnodes/npm/node_modules/@balkangraph/export-service/node_modules/puppeteer/lib/helper.js:112:23)
    at /wwwnodes/npm/node_modules/@balkangraph/export-service/app.js:187:24
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)

Please advice!
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions