Giter Site home page Giter Site logo

Invalid cookies at login about ghunt HOT 18 OPEN

XFORWORKS avatar XFORWORKS commented on June 7, 2024 9
Invalid cookies at login

from ghunt.

Comments (18)

esidate avatar esidate commented on June 7, 2024 4

I have the same issue

from ghunt.

mxrch avatar mxrch commented on June 7, 2024 4

Only time I had this error recently was when I was "connected" at multiple accounts on the same browser (you know, when you switch between accounts etc, Google makes you easily to switch between them), so I cleared cookies, re-tried and it worked.
Can someone who have this error try this ?

from ghunt.

esidate avatar esidate commented on June 7, 2024 4

@mxrch You're right. I removed the other gmail accounts leaving only one and it worked.
I might do a pull request soon to fix this. Thank you.

from ghunt.

micduffy avatar micduffy commented on June 7, 2024 1

Confirmed also for me, that having a browser with multiple accounts caused this issue. Switching to a browser with only one account attached to it resolved the issue for me.

from ghunt.

mxrch avatar mxrch commented on June 7, 2024 1

I start to get the issue too, so I can investigate
For a temporary workaround, go on https://accounts.google.com/robots.txt, clear your cookies and retry to login with the extension

from ghunt.

frHaKtal avatar frHaKtal commented on June 7, 2024

idem for me... :-(

from ghunt.

mxrch avatar mxrch commented on June 7, 2024

This is not an error of which I know how to reproduce 100% of the time, so it makes it difficult to fix.

from ghunt.

XFORWORKS avatar XFORWORKS commented on June 7, 2024

And hopefully, that's soon.

from ghunt.

CreedoW avatar CreedoW commented on June 7, 2024

I start to get the issue too, so I can investigate For a temporary workaround, go on https://accounts.google.com/robots.txt, clear your cookies and retry to login with the extension

Just get firefox or other browser, install the extension, login with google then use it. Simple as that and u don't have to login again on ur main browser !

from ghunt.

mxrch avatar mxrch commented on June 7, 2024

I start to get the issue too, so I can investigate For a temporary workaround, go on https://accounts.google.com/robots.txt, clear your cookies and retry to login with the extension

Just get firefox or other browser, install the extension, login with google then use it. Simple as that and u don't have to login again on ur main browser !

Ok thanks I will try it (joking I'm the developer)

from ghunt.

v9lu avatar v9lu commented on June 7, 2024

I was have same issue, use Firefox instead of Chrome helps me

from ghunt.

XFORWORKS avatar XFORWORKS commented on June 7, 2024

Likewise, it did in fact help.

from ghunt.

ubranch avatar ubranch commented on June 7, 2024

same, latest firefox

from ghunt.

diehard88 avatar diehard88 commented on June 7, 2024

Only time I had this error recently was when I was "connected" at multiple accounts on the same browser (you know, when you switch between accounts etc, Google makes you easily to switch between them), so I cleared cookies, re-tried and it worked. Can someone who have this error try this ?

bingo! worked here.

from ghunt.

pip-ru avatar pip-ru commented on June 7, 2024

I have a slightly different issue, and it's not related to where I obtain cookies. I'm using the Mozilla browser, and the cookies have been cleared. They are valid on the second server but not on the first one. I've tried various options, but the result is zero. Below, I'm providing information from the terminal. As you can see, it says, "The cookies seem valid" and "Got OAuth2 token." I've established a connection with the account, and I've received the name and email address. However, then some magic happens, and I end up with a KeyError: 'SIDCC.' What could be the cause?
Linux 6.1.42
Python 3.10.0

PS: The email address, account name, servers, and token mentioned below have been altered)

[+] The cookies seems valid !

[+] Got OAuth2 token => oauth2_4/0AfJohXn76B6brtOCpK6udfP7FL-Lxim0OL7oQTxX_KrtoI3UNrWNMc9aqDEP5Vyb_PHYtg

[Connected account]
Name : Sergo Danse
Email : [email protected]

🔑 A master token has been generated for your account and saved in the credentials file, please keep it safe as if it were your password, because it gives access to a lot of Google services, and with that, your personal
information.
Master token services access : mail, youtube, hist, cl
Generating OSIDs ...
Traceback (most recent call last):
File "/home/bond007/.local/bin/ghunt", line 8, in
sys.exit(main())
File "/home/bond007/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/ghunt.py", line 15, in main
parse_and_run()
File "/home/bond007/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/cli.py", line 31, in parse_and_run
process_args(args)
File "/home/bond007/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/cli.py", line 38, in process_args
trio.run(login.check_and_login, None, args.clean)
File "/home/bond007/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/trio/_core/_run.py", line 1946, in run
raise runner.main_task_outcome.error
File "/home/bond007/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/modules/login.py", line 90, in check_and_login
ghunt_creds.osids = await gen_osids(cookies, osids)
File "/home/bond007/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/helpers/auth.py", line 77, in gen_osids
sample_cookies[cookie] = req.cookies[cookie]
File "/home/bond007/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/httpx/_models.py", line 1144, in getitem
raise KeyError(name)
KeyError: 'SIDCC'

from ghunt.

matteovidali avatar matteovidali commented on June 7, 2024

Can confirm that this worked for me as well. Initially tried both ways, got invalid cookie error, clearing cookies generated a valid cookie!

from ghunt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.