Open keelung-yang opened 4 years ago
+1 having same issue
+1 I have the same issue. Maybe the size of the file is large, but I want to know where I can modify the value of timeout.
I HAVE THE same problem
+1 me too
But now I think it's pretty much better . And if not I strongly recommend to export as HTML and use Chrome to print the HTML to PDF.
+1 . But there is a pdf, I don't know whenever it was generated. Because evertime it was failed. os: Mac 10.14.3 vcd: 1.45.1 markdown-pdf: 1.4.4
+1 have the same issue. I can't load the html which be exported by markdown-pdf. OS: Mac 10.13.6 VSCode: 1.47.0 markdown-pdf: 1.4.4
+1 Me too OS: Mnajaro VSCode: 1.47.0 markdown-pdf: 1.4.4
i got the same problem, but i cannot find a good method to solve it
The hack is as follows.
/Users/<username>/.vscode/extensions/yzane.markdown-pdf-1.4.4/extension.js
in your local machine.page.goto(...)
call and modify it, like some online guides suggest,
await page.setDefaultNavigationTimeout(0);
before the goto()
line,timeout: 0
in the object argument of the goto()
call.A better way would be gradually increasing the timeout limit until it works, but then it requires more patience and testing.
This error looks a lot like this other: https://github.com/yzane/vscode-markdown-pdf/issues/185
Try following these steps: CTRL+shift+p > settings.json > add the line: "markdown-pdf.executablePath": "C:\
I got the same problem. If you were using a proxy server, modify as below.
/Users/<username>/.vscode/extensions/yzane.markdown-pdf-1.4.4/extension.js
in your local machine.options
and modify it as below
args: ['--lang='+vscode.env.language, '--no-sandbox', '--disable-setuid-sandbox', '--proxy-server=http://xxx.co.jp:8080'],
windows 10 x64 vscode 1.63.2 with Chromium 91.0.4472.164 markdownpdf-1.4.4
Markdown-pdf:Executable Path
Can be:
C:\Program Files(x86)\Microsoft\Edge\Application\msedge.exe
or
C:\Program Files(x86)\Google\Chrome\Application\chrome.exe
or
empty.
vscode seems have bulti-in chromium.
If you have proxy, change the extension.js
C:\Users\your-user-name\.vscode\extensions\yzane.markdown-pdf-1.4.4/extension.js
args: ['--lang='+vscode.env.language, '--no-sandbox', '--disable-setuid-sandbox', '--proxy-server=http://your-proxy-server:port']
I got the same problem. I solved this way in my Environment.
accses below file
C:\Users\your-user-name\.vscode\argv.json
in your local machine.
Check if the following description exists.
Add if not.
"disable-color-correct-rendering": true,
In my environment, there were some that had this description and others that didn't. There was no such description in the environment where timeouterror occurs.
I didn't solve it by describing the browser or the proxy, but it was solved by adding this description.
- timeout: 0
only the solution with timeout
worked for me
I got this error because I had a commented line in HTML, I deleted that line and then it worked. Just in case someone has the same issue.
https://github.com/yzane/vscode-markdown-pdf/issues/189#issuecomment-1313687166
This solution did not work for me.
Open C:\Users\your-user-name\.vscode\extensions\yzane.markdown-pdf-1.4.4\node_modules\puppeteer-core\lib\TimeoutSettings.js
Update const DEFAULT_TIMEOUT = 300000;
restart VSCode
OS: Microsoft Windows [Version 10.0.17763.973] 64 bits VSCode: 1.42.1, 1.43 Markdown-PDF: 1.4.4