ra83205 / google-bard-api

This project provides a FastAPI wrapper for interacting with Google Bard, a conversational AI by Google. It allows users to send messages to Google Bard and receive responses through a simple API.
254 stars 62 forks source link

Google Bard encountered an error #11

Open lywchaos opened 1 year ago

lywchaos commented 1 year ago

google-bard-api doessn't work.

The only response message i got was {"content":"Google Bard encountered an error: b')]}\'\n\n38\n[[\"wrb.fr\",null,null,null,null,[9]]]\n56\n[[\"di\",184],[\"af.httprm\",184,\"7440470310890705770\",2]]\n25\n[[\"e\",4,null,null,131]]\n'."}

I add print(resp.text) below this line, and got something like this:

)]}'

38
[["wrb.fr",null,null,null,null,[8]]]
56
[["di",238],["af.httprm",238,"6391811025503487755",1]]
25
[["e",4,null,null,131]]

That's absolutely a bad result. I wonder who is to blame?

andredumandan commented 1 year ago

Hi, I'm having the same problem right now. I get 3 correct responses but then I get the error. Have you figured out what's causing it?

julianschnell commented 1 year ago

I'm having the same issue... When I tried to reproduce the http request, I realized that the url param bl and the message array for param f.req, that are submitted with the post request have changed in the meantime. However, even when adjusting these values, I wasn't able to perform a successful request.