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
894 stars 119 forks source link

Referrer is not defined #298

Closed dhdiu closed 1 year ago

dhdiu commented 1 year ago

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

danny0838 commented 1 year 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 1 year 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 1 year ago

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

danny0838 commented 1 year 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 1 year 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 1 year 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 1 year ago

Worked fine after reinstallation,thx.