thewh1teagle / rookie

Load cookies from your web browsers
https://crates.io/crates/rookie
MIT License
204 stars 18 forks source link

[Bug]: Invalid column type Text at index: 6, name: encrypted_value #55

Closed majinke closed 3 weeks ago

majinke commented 1 month ago

What happened?

today, i updated edge, then report "i updated edge", it's ok yesterday. edge version: 130.0.2849.46 (64 bits)

Steps to reproduce

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

What browsers are you seeing the problem on?

No response

Relevant log output

No response

JoeanAmier commented 1 month ago

I also encountered this problem.

import rookiepy

print(rookiepy.edge(domains=["douyin.com"]))

Unlocking Chrome database... This may take a while (sometimes up to a minute) Traceback (most recent call last): File "C:\Users\youyq\AppData\Roaming\JetBrains\PyCharm2024.2\scratches\scratch_2.py", line 3, in print(rookiepy.edge(domains=["douyin.com"])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: Invalid column type Text at index: 6, name: encrypted_value

Location: rookie-rs\src\browser\chromium.rs:279:36

git-070 commented 4 weeks ago

我也遇到了,不知道还能不能解决

Saroumane commented 4 weeks ago

Also reproduced since I upgraded chromium to version 130.0.6723.58

const cookies = chromium(["google.com"]);
                ^

Error: Invalid column type Text at index: 6, name: encrypted_value

I use : import { chromium } from "@rookie-rs/api";

thewh1teagle commented 4 weeks ago

See https://github.com/thewh1teagle/rookie/issues/50

Chrome updated the way it encrypts the cookies. I'm working on a fix but keep in mind that from now on in Windows it will be possible to decrypt the cookies ONLY when running as admin.

thewh1teagle commented 4 weeks ago

Released new version with support for latest chromium. On Windows you must run it as admin (Python/JS/Rust)

Saroumane commented 4 weeks ago

Thanks, working again perfectly on Linux

git-070 commented 4 weeks ago

Released new version with support for latest chromium. On Windows you must run it as admin (Python/JS/Rust)

Hello! Thank you for the update But it failed to run, what is the reason? RuntimeError: key[0] != 1 RuntimeError key 0  != 1

thewh1teagle commented 4 weeks ago

Hello! Thank you for the update But it failed to run, what is the reason? RuntimeError: key[0] != 1

It doesn't work with Edge or Brave yet. It worked to me in Chrome and Chromium

git-070 commented 4 weeks ago

It doesn't work with Edge or Brave yet. It worked to me in Chrome and Chromium

Understood, thank you!

thewh1teagle commented 3 weeks ago

Fixed in v0.5.5. it works now on all Chrome based browsers. (Chrome/Edge/Brave etc)