Skip to content

[Bug]: CLI app - Redirecting output causes invalid cookie file to be generated #93

@milnak

Description

@milnak

What happened?

On Windows:

.\rookie-cli-x86_64-pc-windows-msvc.exe --browser edge --format netscape | Out-File cookies.txt

cookies.txt:

�[2m2025-01-18T02:29:39.052450Z�[0m �[32m INFO�[0m �[2mrookie::windows::shadow_copy�[0m�[2m:�[0m Creating shadow copy to cookies file from C:\Users\jeffm\AppData\Local\Microsoft\Edge\User Data\Default\Network\Cookies to C:\Users\jeffm\AppData\Local\Temp\.tmpszSqhiWrGW    
�[2m2025-01-18T02:29:39.158373Z�[0m �[32m INFO�[0m �[2mrookie::browser::chromium�[0m�[2m:�[0m Creating SQLite connection to C:\Users\jeffm\AppData\Local\Temp\.tmpszSqhiWrGW\Cookies    
# Netscape HTTP Cookie File
# Generated by Rookie 0.5.6 (11d6402)
# Edit at your own risk.

.bing.com	TRUE	/	TRUE	<redacted>
<redacted>

Steps to reproduce

  1. step one...
  2. step two...

What browsers are you seeing the problem on?

Edge

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions