Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(node:14308) UnhandledPromiseRejectionWarning: #3

Open
polizoto opened this issue Sep 2, 2021 · 2 comments
Open

(node:14308) UnhandledPromiseRejectionWarning: #3

polizoto opened this issue Sep 2, 2021 · 2 comments

Comments

@polizoto
Copy link

polizoto commented Sep 2, 2021

Hi:

I just tried calling the API using the mpx path/to/input.pdf path/to/output.docx method and received the following warning (5 times).

at Timeout.<anonymous> (C:\Users\USERNAME\AppData\Roaming\npm\node_modules\@mathpix\mpx-cli\lib\convert.js:258:22)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
(node:14308) 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: 6)

I have attached the (single-page) PDF file in question.

Page 250.pdf

The Markdown and MS Word documents I requested are downloaded successfully, but what do you recommend?

@montanaflynn
Copy link
Contributor

@polizoto thanks for the report, I'll look into this and reply back when there's a solution.

@montanaflynn
Copy link
Contributor

Also in the meantime you should see the PDF at https://snip.mathpix.com/ where you can export to docx or any other format without re-processing the same pdf for each exported format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants