danny0838 / webscrapbook

A browser extension that captures web pages to local device or backend server for future retrieval, organization, annotation, and edit. This project inherits from legacy Firefox add-on ScrapBook X.
Mozilla Public License 2.0
908 stars 121 forks source link

Referrer is not defined #298

Closed dhdiu closed 2 years ago

dhdiu commented 2 years ago

When I download the original page, I get an error Fatal error: Referrer is not defined, how do I solve it?

danny0838 commented 2 years ago

What is the URL you are capturing? What are your capture options? Please also provide the log messages in the capture dialog for further investigation.

dhdiu commented 2 years ago

I was using the extension on kiwi browser and one day it suddenly didn't work and then reported an error and I couldn't find the reason.Capture any url gets the same result, the capture option only changes the save directory as root, only save single html these two options. Get paging will appear yellow Referrer is not defined after css and image urls, the html captured lost css and image, get paging (as is) will appear single red Referrer is not defined not saved will still content.

dhdiu commented 2 years ago

If I open these css and image links individually they can be downloaded successfully.

danny0838 commented 2 years ago

Please provide a reproducible case, including the URL, thr capture options (you can copy from the advanced dialog), and the full log messages in the dialog.

dhdiu commented 2 years ago

Capture tabs Capturing (document) [671382100] https://github.com/danny0838/webscrapbook/issues/298 ... Error downloading file (https://github.githubassets.com/assets/light-719f1193e0c0.css): Referrer is not defined Error downloading file (https://github.githubassets.com/assets/dark-0c343b529849.css): Referrer is not defined Error downloading file (https://github.githubassets.com/assets/primer-bb7dbc10bec9.css): Referrer is not defined Error downloading file (https://github.githubassets.com/assets/global-f6f644aba0fa.css): Referrer is not defined Error downloading file (https://github.githubassets.com/assets/github-c0e74c06514a.css): Referrer is not defined Error downloading file (https://github.githubassets.com/favicons/favicon.png): Referrer is not defined Error downloading file (https://github.githubassets.com/favicons/favicon.svg): Referrer is not defined Error downloading file (https://avatars.githubusercontent.com/u/115747316?s=40&v=4): Referrer is not defined Error downloading file (https://avatars.githubusercontent.com/u/115747316?s=40&v=4): Referrer is not defined Error downloading file (https://avatars.githubusercontent.com/u/115747316?s=80&v=4): Referrer is not defined Error downloading file (https://avatars.githubusercontent.com/u/531417?s=80&v=4): Referrer is not defined Error downloading file (https://avatars.githubusercontent.com/u/115747316?s=80&v=4): Referrer is not defined Error downloading file (https://avatars.githubusercontent.com/u/115747316?s=80&v=4): Referrer is not defined Error downloading file (https://avatars.githubusercontent.com/u/531417?s=80&v=4): Referrer is not defined Error downloading file (https://avatars.githubusercontent.com/u/531417?s=40&v=4): Referrer is not defined Error downloading file (https://avatars.githubusercontent.com/u/115747316?s=80&v=4): Referrer is not defined Error downloading file (https://github.githubassets.com/images/spinners/octocat-spinner-64.gif): Referrer is not defined Error downloading file (https://avatars.githubusercontent.com/u/531417?s=52&v=4): Referrer is not defined Error downloading file (https://avatars.githubusercontent.com/u/115747316?s=52&v=4): Referrer is not defined Saving data... Saved to "content://media/external/downloads/93068" Done. Capture tabs(source) Capturing (source) https://github.com/danny0838/webscrapbook/issues/298 ... Fatal error: Referrer is not defined kiwi browser latest webscrapbook extension latest capture options for change: 1 Scrapbook folder: / 2 Save captured data as: Single HTML Other options have not been changed.

danny0838 commented 2 years ago

I cannot reproduce the problem you described. Please provide the exact version number of your Kiwi Browser and WebScrapBook, and the exact capture options (you can copy from the advanced dialog of Capture tab as). Also disable all other extensions in case there's a conflict.

dhdiu commented 2 years ago

Worked fine after reinstallation,thx.