-
Notifications
You must be signed in to change notification settings - Fork 177
SNlM0e (Compiled thread) #31
Comments
Attempts to solve:
|
I'm seeing the same error. My IP address is in the US, and I'm only signed in to one account. |
For everyone's convenience (as an easy meanwhile solution while this is being resolved), you can obtain the |
How do you get the module to use the value that you've extracted? |
Similar to how you pass the cookie string value to the Bard.py script bard () {
export BARD_QUICK=true
export BARD_SESSION=<REDACTED>.
python3 -m Bard "${@:-$(</dev/stdin)}" | tail -n+7
} you could do the same for SNlM0e: export BARD_SNlM0e=<REDACTED>. Then you could modify your __get_snlm0e(self): function to just call it from os env and avoid the whole api request: def __get_snlm0e(self):
SNlM0e= os.getenv("BARD_SNlM0e")
return SNlM0e I do something similar using NodeJS in my project DuelGPT (a front-end for using ChatGPT and Bard side-by-side - minimal backend code) |
Exporting SNlM0e from console gives me a different error:
|
Yep having this too… |
Works great when I call it from the command line, but when I try to use it in a script I keep getting the same error.
produces 'NoneType' object is not iterable. I'm sure I'm missing something obvious |
@karlzipple You can go to Bard.py to change the functionality of 'def ask(self, message: str) -> dict:', print out the 'json_chat_data' to see what is your task-oriented requirement, and customize the 'results' yourself to skip the Nonetype error. That could be a cheap solution. |
can you please retype this. What the hell is . ? Does it contain < > ? Does it end with a period? <1687168999467>. ? is it <DFuTz6sfj1k3Bu814Vj8_3JhXhvE:1687168999467> ? is it DFuTz6sfj1k3Bu814Vj8_3JhXhvE:1687168999467? is it "DFuTz6sfj1k3Bu814Vj8_3JhXhvE:1687168999467" ? Please. Be specific. |
The latest release resolves this issue. You don't need to make any modifications to the code for this to work. Just pull Here's my working code, copied from the README.md in
Here's an example of it working:
|
i still cant get it to work :( Im using the chatbot usecase, with ChatGPT-DIscord-Bot-1.5.1. By commenting out the errors and pasting in the SNlM0e directly instead of using the __Secure_1*** cookie, because it gives me the "must end with a dot" error even though it DOES end with a dot, i finally get it to fully load the discord bot, but when i go to get a response it says I dont know how relates in any possible way |
async def __get_snlm0e(self):
# Find "SNlM0e":"<ID>"
#if not self.session_id or self.session_id[-1] != ".":
# raise Exception(
# "__Secure-1PSID value must end with a single dot. Enter correct __Secure-1PSID value.",
# )
resp = await self.session.get(
"https://bard.google.com/",
timeout=10,
follow_redirects=True,
)
if resp.status_code != 200:
raise Exception(
f"Response code not 200. Response Status is {resp.status_code}",
)
SNlM0e = re.search(r"SNlM0e\":\"(.*?)\"", "AFuTs6sfj1k3Bu814Vj8_3JhXhvE:1687168999468")
##if not SNlM0e:
# raise Exception(
# "SNlM0e value not found in response. Check __Secure-1PSID value.",
# )
return "(.1687168999468?)" |
Worked yesterday; Not working today. I wonder why it happen, but getting site with cURL (with and without cookie) doesn't include SNlM0e too. |
The text was updated successfully, but these errors were encountered: