Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

'NoneType' object has no attribute 'group' #11

Closed
zenorochaV1 opened this issue Apr 5, 2023 · 11 comments
Closed

'NoneType' object has no attribute 'group' #11

zenorochaV1 opened this issue Apr 5, 2023 · 11 comments

Comments

@zenorochaV1
Copy link

'NoneType' object has no attribute 'group'

@chokychou
Copy link

same issue

@chokychou
Copy link

@zenorochaV1 mine resolved by double checking copied __Secure-1PSID. Please check yours

@venuv
Copy link

venuv commented Apr 6, 2023

thx @chokychou .. the trailing '.' is part of the cookie id if that helps others

@HANiFLY
Copy link

HANiFLY commented Apr 7, 2023

GOT the same Nonetype problem even the value of "BARD_TOKEN" is with the trailing '.'

@Somioni
Copy link

Somioni commented Apr 7, 2023

I found what's wrong.

Function: __get_snlm0e
It gives "None" instead of token, and then "None" instead of re.search in library.
And "None" instead of re.search dont have group

Pls fix, im too lazy to look into whole code to remake it

@HANiFLY
Copy link

HANiFLY commented Apr 8, 2023

__get_snlm0e

could you tell me what is expected to return from __get_snlm0e?

@HANiFLY
Copy link

HANiFLY commented Apr 8, 2023 via email

@tekemperor
Copy link

Not the author, but I looked at the code. It appears __get_snlm0e() returns a string found in a call to https://bard.google.com/ that you can only get if your cookie is valid. If the string is not there, the regex will fail to find it and return None instead of the string.

This all points to the token not being valid. There are a few different cookies that have the same prefix. Are you sure you have the value of __Secure-1PSID and not __Secure-1PSIDCC for your BARD_TOKEN?

@Ai-Austin
Copy link

What is causing this issue is you are trying to paste the token in the quotes of the boiler plate code. If you are not using a system variable and want to paste it straight in the code: Delete the os.environ and make the token a string with your token.

@cameronj86
Copy link

☝🏾
When I put my session cookie in quotations (copying the info in the readme) in bash, it became functional again, thanks

@jauyzed
Copy link

jauyzed commented Apr 28, 2023

Although the error was gone after converting to string but it returned nothing for the question; just an empty prompt

@acheong08 acheong08 closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants