Skip to content

Timeout issue #459

@Ctucker9233

Description

@Ctucker9233

I get this timeout error when I use electron-to-html to convert an html file to pdf.

{ Error: Worker Timeout, the worker process does not respond after 10000 ms
at Timeout._onTimeout (C:\Users\Owner\Desktop\code\PDF-Profile-Generator\node_modules\electron-workers\lib\ElectronManager.js:377:21)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)
workerTimeout: true,
message:
'Worker Timeout, the worker process does not respond after 10000 ms',
electronTimeout: true }

Here's the js call:
var convertFactory = require('electron-html-to');

        var conversion = convertFactory({
            converterPath: convertFactory.converters.PDF
        });

        conversion({ file: './profile.html' }, function (err, result) {
            if (err) {
                return console.error(err);
            }

            console.log(result.numberOfPages);
            console.log(result.logs);
            result.stream.pipe(fs.createWriteStream(__dirname + '/profile.pdf'));
            conversion.kill();

Any assistance with an extra parameters I need to use would be helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions