Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to run SharpChrome when Chrome is open #38

Open
fk4125 opened this issue Mar 15, 2024 · 1 comment
Open

Fails to run SharpChrome when Chrome is open #38

fk4125 opened this issue Mar 15, 2024 · 1 comment

Comments

@fk4125
Copy link

fk4125 commented Mar 15, 2024

4trGk5jDoV

Got error when Chrome is open.
Using SharpChrome v1.12.0, Windows 11, Google Chrome Version 122.0.6261.129

System.NullReferenceException: Object reference not set to an instance of an object.
   at SharpChrome.Chrome.ParseChromeCookies(Dictionary`2 MasterKeys, String cookieFilePath, String displayFormat, Boolean showAll, Boolean unprotect, String cookieRegex, String urlRegex, Boolean setneverexpire, Byte[] aesStateKey, Boolean quiet)
   at SharpChrome.Chrome.TriageChromeCookies(Dictionary`2 MasterKeys, String computerName, String userFolder, String displayFormat, Boolean showAll, Boolean unprotect, String cookieRegex, String urlRegex, Boolean setneverexpire, String stateKey, String browser, Boolean quiet)
   at SharpChrome.Commands.Cookies.Execute(Dictionary`2 arguments)
   at SharpChrome.Domain.CommandCollection.ExecuteCommand(String commandName, Dictionary`2 arguments)
   at SharpChrome.Program.MainExecute(String commandName, Dictionary`2 parsedArgs)
@RickConsole
Copy link

This is because the Cookies file in the chrome directory is a SQLite DB, and chrome keeps it open, preventing you from accessing it. A more informative error message here would be the only fix I imagine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants