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

API failing to get response #61

Open
ghost opened this issue Jul 3, 2023 · 1 comment
Open

API failing to get response #61

ghost opened this issue Jul 3, 2023 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 3, 2023

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
Copy link

jonny7737 commented Jul 13, 2023

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
<Response [200 OK]>
SNIMOe is not there and therefore not found. ¯\(ツ)

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

1 participant