Timeout when processing pdf in Github Action #463
Replies: 4 comments 1 reply
-
@yhatt I could actually reproduce this behaviour with the official marp-cli docker image locally. With the old PUPPETEER_HEADLESS_MODE it fails caused by headless false or so... docker run --rm --init -v $PWD:/home/marp/app/ -e LANG=$LANG -e marpteam/marp-cli operatoren.md --allow-local-files --pdf
[ INFO ] Converting 1 markdown...
[ WARN ] Insecure local file accessing is enabled for conversion from
operatoren.md.
[ ERROR ] Failed converting Markdown. (Protocol error (Page.printToPDF):
Printing failed) With the NEW PUPPETEER_HEADLESS_MODE it fails caused by the timeout, like in the github actions. docker run --rm --init -v $PWD:/home/marp/app/ -e LANG=$LANG -e PUPPETEER_HEADLESS_MODE=new marpteam/marp-cli operatoren.md --allow-local-files --pdf
[ INFO ] Converting 1 markdown...
[ WARN ] Insecure local file accessing is enabled for conversion from
operatoren.md.
[ ERROR ] Failed converting Markdown. (waiting for Page.printToPDF failed:
timeout 30000ms exceeded) locally outside a docker image it works perfectly. |
Beta Was this translation helpful? Give feedback.
-
I just figured out some interesting use-cases:
It seems to me that accessing external ressources are problematic with puppeteer. The html file generation works fine. This all used to work for 2 years. |
Beta Was this translation helpful? Give feedback.
-
Ok, here I can prove, github actions somehow are blocking external requests, a simple curl to the image I referene is also not working. Run curl https://lerneprogrammieren.de/wordpress/wp-content/uploads/uebersicht-programmiersprachen.png --output test.png
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0
...
0 0 0 0 0 0 0 0 --:--:-- 0:02:09 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:02:10 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:02:10 --:--:-- 0
curl: (28) Failed to connect to lerneprogrammieren.de port 443 after 130573 ms: Connection timed out
Error: Process completed with exit code 28.
|
Beta Was this translation helpful? Give feedback.
-
It seems to be github actions running in different regions. After re-running the curl worked... Very strange, I close this discussion and will have an 👀 on this. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear Marp Community
I use marp-cli since 2 years together with github actions. Since lately I experiance some timeout errors when generating pdfs. Locally it works perfect and fast. Does anybody expericance the same?
THX a lot!
Beta Was this translation helpful? Give feedback.
All reactions