Open cfmackey opened 1 month ago
I was able to bypass the error by running in headed mode. Closing issue.
Maybe add this as a tip to the documentation?
Reopening - headed mode seems to just yield blank pdf files. Trying to investigate further.
@cfmackey This is kinda hacky, but I have a fork that worked for me. This only works in headless mode right now
When trying to download an older manual (say 1993 Truck), the script will proceed normally but then error when trying to download first file:
Downloading page How To Use This Manual: How To Use This Manual (1995 T100)...
Error saving page How To Use This Manual: How To Use This Manual (1995 T100): TimeoutError: page.goto: Timeout 30000ms exceeded.
=========================== logs ===========================
navigating to "https://techinfo.toyota.com/t3Portal/document/rm/RM414U/xhtml/RM414U_0001.html", waiting until "load"
============================================================
It'll continue erroring out in the same way for the whole manual.
It appears older manuals display their PDFs differently on the site, using a PDF viewer instead of directly opening in TIS's browser. If you open the PDFs with Right Click > Open New Tab, the path to the file is different from that the script is trying to load when the error occurs. In the above example, the correct URL is:
https://techinfo.toyota.com/t3Portal/document/rm/RM306U/pdf/IN/How_To_Use_This_Manual.pdf?locale=na