iamtheyammer / fetch-ford-service-manuals

Downloads HTML and PDF versions of Ford Service Manuals from PTS
GNU General Public License v3.0
32 stars 12 forks source link

Err_File_Not_Found #12

Closed eyeball29 closed 8 months ago

eyeball29 commented 8 months ago

Receiving an error partway through the process. Got through three sections and then this appears:

Downloading manual page Four-Wheel Drive Systems - Overview.html (docID: G1582404)
C:\savingstuffhere\src\saveEntireManual.ts:115
  await page.goto(`file://${htmlPath}`, { waitUntil: "load" });
             ^
page.goto: net::ERR_FILE_NOT_FOUND at file:///C:/savingstuffhere/3-%20Powertrain/08-%20Manual%20Transmission,%20Clutch,%20Transfer%20Case%20and%20Power%20Transfer%20Unit/308-07A%20Four-Wheel%20Drive%20Systems%20-%20Vehicles%20With-%20Active%20Torque%20Coupling%20Differential/Description%20and%20Operation/Four-Wheel%20Drive%20Systems%20-%20Overview.html
=========================== logs ===========================
navigating to "file:///C:/savingstuffhere/3-%20Powertrain/08-%20Manual%20Transmission,%20Clutch,%20Transfer%20Case%20and%20Power%20Transfer%20Unit/308-07A%20Four-Wheel%20Drive%20Systems%20-%20Vehicles%20With-%20Active%20Torque%20Coupling%20Differential/Description%20and%20Operation/Four-Wheel%20Drive%20Systems%20-%20Overview.html", waiting until "load"
============================================================
    at savePageAsPDF (C:\savingstuffhere\fetch-ford-service-manuals\src\saveEntireManual.ts:115:14)
    at saveEntireManual (C:\savingstuffhere\fetch-ford-service-manuals\src\saveEntireManual.ts:86:13)
    at async saveEntireManual (C:\savingstuffhere\fetch-ford-service-manuals\src\saveEntireManual.ts:105:7)
    at async saveEntireManual (C:\savingstuffhere\fetch-ford-service-manuals\src\saveEntireManual.ts:105:7)
    at async saveEntireManual (C:\savingstuffhere\fetch-ford-service-manuals\src\saveEntireManual.ts:105:7)
    at async saveEntireManual (C:\savingstuffhere\fetch-ford-service-manuals\src\saveEntireManual.ts:105:7)
    at async run (C:\savingstuffhere\fetch-ford-service-manuals\src\index.ts:59:3) {
  name: 'Error'
}
eyeball29 commented 8 months ago

Is there a way to skip a particular file? Looks like it might keep going if I can get past that one.

iamtheyammer commented 8 months ago

I can definitely add a method for it to skip files and just move on— but could you check if that file indeed does exist?

C:/3- Powertrain/08- Manual Transmission, Clutch, Transfer Case and Power Transfer Unit/308-07A Four-Wheel Drive Systems - Vehicles With- Active Torque Coupling Differential/Description and Operation/Four-Wheel Drive Systems - Overview.html

iamtheyammer commented 8 months ago

The better solution is to use the browser exclusively to load all the pages and use that to save both the HTML and PDF, but I recall that causing a bunch of problems. How long is your subscription valid for?

eyeball29 commented 8 months ago

It appeared to exist on the site and have the correct docID: G1582404 associated... But I think you meant on my drive? I'd have to check when I get home.

My subscription ends today I believe but I should be able to keep attempting as long as the cookie data is relatively recent, correct? If not, I'll pay the extra to extend it... Still better than the amount for monthly or the eBay ones.

eyeball29 commented 8 months ago

I have confirmed that the /3- Powertrain/08- Manual Transmission, Clutch, Transfer Case and Power Transfer Unit/308-07A Four-Wheel Drive Systems - Vehicles With- Active Torque Coupling Differential/Description and Operation/Four-Wheel Drive Systems - Overview.html file exists within the files downloaded, just not the PDF.

I ran it again and it appears I am one further along than the above document now. Tried a second time and still stuck at the one after the above.

iamtheyammer commented 8 months ago

You actually don’t need an active subscription to download workshop manuals, you just need it to collect the data for the params files (and to download workshop manuals). Could you email me your params.json file so I can try downloading the manual on my end? I don’t have a Windows machine, so I’ll be trying on Ubuntu.

RedxRabbit commented 8 months ago

I am having the same issue, please help

iamtheyammer commented 8 months ago

Should be fixed in the newest commit. The way I re-wrote the saving code no longer automatically saves HTML files by default— add —saveHTML to do so.