aoc-cli icon indicating copy to clipboard operation
aoc-cli copied to clipboard

error: Failed to read session cookie from "C:\Users\****\.adventofcode.session": stream did not contain valid UTF-8

Open 4mnestic opened this issue 2 years ago • 1 comments

aoc-cli version 0.12.0 on Windows 11 using VSCodium. I created a "adventofcode.session" file in my \Roaming\ directory using echo "[session_cookie]" > [file] and then an ".adventofcode.session" file in my ~ directory using cp. I get a UTF-8 error when I run aoc. Any ideas? Let me know if I should include more environment/version information <3

Version: 1.81.1 (user setup) Release: 23222 Commit: aef377c42cea6e9aea642829953104f07097abfa Date: 2023-08-10T18:29:45.715Z Electron: 22.3.18 ElectronBuildId: undefined Chromium: 108.0.5359.215 Node.js: 16.17.1 V8: 10.8.168.25-electron.0 OS: Windows_NT x64 10.0.22621

4mnestic avatar Aug 13 '23 23:08 4mnestic

Hi, I'm sorry you're having issues. Can you confirm this is still happening?

Can you confirm you replaced [session_cookie] with a valid session cookie, which is a long hex string (containing numbers and lower case 'a' to 'f').

Can you show the output with the error (use --debug for more info).

If this persists, please create a file with a fake (but otherwise valid) cookie such as echo "0123456789abcdef" > .adventofcode.session and test again. If you get the same error, please share the file so I can inspect it.

scarvalhojr avatar Dec 12 '23 17:12 scarvalhojr