scarvalhojr / aoc-cli

Advent of Code command-line tool
MIT License
249 stars 17 forks source link

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

Open imzoc opened 1 year ago

imzoc commented 1 year ago

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

scarvalhojr commented 11 months ago

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.