When using “single-file-cli” with a “cookies.json” file, I got the following error:
1 | > ./single-file-aarch64-apple-darwin --browser-cookies-file="./cookies.json" https://... target.html |
The cookie JSON file was exported by a chrome extension which contained the following content:
1 | [ |
ChatGPT said only the “name/value/domain/path” fields were required which seemed correct. The “sameSite/storeId” fields seemed suspect because of the “null” value. I removed these two fields and tried. The error didn’t show anymore. Not sure why the “Cookie-Editor” extension exports invalid field values but good to know the solution with the help from ChatGPT.