acheong08 / Bard

Python SDK/API for reverse engineered Google Bard
MIT License
1.42k stars 178 forks source link

API failing to get response #61

Open ghost opened 1 year ago

ghost commented 1 year ago

So, lately i was trying to setup an AI that behave like a human being, and to avoid training the AI on tons and tons of data i was trying to use the google bard API to make him respond to all of the questions that i could ask

the code im trying to use is this:

from os import environ
from Bard import Chatbot

chatbot = Chatbot("*MyKey*")

print(chatbot.ask("Hello, how are you?"))

but im getting this error back, since im in Italy and google bard is not avaible in Italy i tried with both with and without the vpn, moving myself to virginia, with no success, the key is generated from a new account created while on the virginia server.

this is the error im getting {'content': 'Google Bard encountered an error: b\')]}\\\'\\n\\n38\\n[["wrb.fr",null,null,null,null,[9]]]\\n55\\n[["di",95],["af.httprm",94,"-2844884599098641368",5]]\\n25\\n[["e",4,null,null,130]]\\n\'.'}

any idea on how to fix?

jonny7737 commented 1 year ago

I get this error: SNlM0e value not found in response. Check __Secure-1PSID value.

I checked the 1PSID and it is correct. Any ideas on how to fix this?

I figured out the problem but not the solution: the response to session.get() is SNIMOe is not there and therefore not found. ¯\\_(ツ)_/¯