yzane / vscode-markdown-pdf

Markdown converter for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=yzane.markdown-pdf
Other
1.01k stars 206 forks source link

TimeoutError: Navigation timeout of 30000 ms exceeded #189

Open keelung-yang opened 4 years ago

keelung-yang commented 4 years ago

OS: Microsoft Windows [Version 10.0.17763.973] 64 bits VSCode: 1.42.1, 1.43 Markdown-PDF: 1.4.4

image

BEUTEJO commented 4 years ago

+1 having same issue

gvariable commented 4 years ago

+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.

SpriCoder commented 4 years ago

I HAVE THE same problem

takeshi0206 commented 4 years ago

+1 me too

gvariable commented 4 years ago

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.

Yalhu commented 4 years ago

+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

ReynoldSong commented 4 years ago

+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

Tizeen commented 4 years ago

+1 Me too OS: Mnajaro VSCode: 1.47.0 markdown-pdf: 1.4.4

JackeyLea commented 4 years ago

i got the same problem, but i cannot find a good method to solve it

hkleungai commented 4 years ago

Below is a temp yet potentially risky hack for totally removing the timeout constraint.

The hack is as follows.

A better way would be gradually increasing the timeout limit until it works, but then it requires more patience and testing.

jose-amat commented 3 years ago

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:\\chrome.exe" > restart vscode

fwhv2042 commented 3 years ago

I got the same problem. If you were using a proxy server, modify as below.

ppdouble commented 2 years ago

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']

yabumoto-takuya commented 2 years ago

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.

image

danieldanielecki commented 1 year ago
  • timeout: 0

only the solution with timeout worked for me

Meruman commented 1 year ago

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.

mickeyang commented 1 year ago

https://github.com/yzane/vscode-markdown-pdf/issues/189#issuecomment-1313687166

This solution did not work for me.

guang-zhao commented 1 year ago

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;

image

restart VSCode