-
Notifications
You must be signed in to change notification settings - Fork 176
API call is failing. Google may have changed the API response structure #59
Comments
yip. i am getting the same... |
Have you tried updating? I don't see this issue on the new update. |
Yep, I'm on the latest version already. I don't know why but it only works for the CLI version, when I run the example.py, it returns the same error. It was working for a while when I upgraded my version, but after leaving it for a few days (3 days or so) it just randomly returned me that error. I discovered this when I went on the website I made with this. It kept returning Error Code: 500 Internal Server Error. So I looked into my JS and Python code but I saw no mistakes so I decided to download the zip file provided, and it still didn't work. (By not working I mean that it's returning that error.) I was so frustrated that I literally resorted to ChatGPT 😂 |
It has been down for me as well. |
since these aren't official apis sometimes you have to regenerate from the cookie .. it should be working (or at least it is for me (01-july-2023 2117 EST) |
i got the same error, so does it work with the new update? |
I am not getting these errors .. device galaxy s21 unrooted I will uninstall termux and try from a fresh install as I may have dependencies built into my machine that aren't listed in requirements to run . but when I make an API call it replies back with around 3 second delay |
API call is failing. Google may have changed the API response structure
Traceback (most recent call last):
File "bard-hack.py", line 8, in
response = chatbot.ask("Tell me a joke?")
File "/lib/python3.9/site-packages/Bard.py", line 83, in ask
return self.loop.run_until_complete(self.async_chatbot.ask(message))
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/lib/python3.9/site-packages/Bard.py", line 247, in ask
"content": json_chat_data[0][0],
TypeError: 'NoneType' object is not subscriptable
The text was updated successfully, but these errors were encountered: