mhtml2html icon indicating copy to clipboard operation
mhtml2html copied to clipboard

Error: Expected boundary; Line 11

Open chdagenais opened this issue 3 years ago • 3 comments

Trying to use from command line to convert mhtml to html

Always getting this error, with any mhtml files I have to convert.

Error: Expected boundary; Line 11
    at i (/usr/local/lib/node_modules/mhtml2html/dist/mhtml2html.js:1:1684)
    at Object.parse (/usr/local/lib/node_modules/mhtml2html/dist/mhtml2html.js:1:3565)
    at Object.convert (/usr/local/lib/node_modules/mhtml2html/dist/mhtml2html.js:1:4442)
    at /usr/local/lib/node_modules/mhtml2html/index.js:34:36
    at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:63:3)

V 3.0.0

enabling or disabling the convertIframe option gives the same error

chdagenais avatar Nov 14 '21 03:11 chdagenais

Hi @charlesdagenais can you please provide an example mhtml file you are using? Were these files generated by chrome?

msindwan avatar Nov 30 '21 11:11 msindwan

I have the same problem, while trying to convert this file

Оскорбление чувств играющих — Ртуть.zip

fira42073 avatar Mar 23 '22 16:03 fira42073

Same for me, using these examples.

Upd: I made a quick fix it in my own fork.

rg-software avatar Sep 21 '23 16:09 rg-software