dsdanielpark / Bard-API

The unofficial python package that returns response of Google Bard through cookie value.

Home Page:https://pypi.org/project/bardapi/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IndexError: list index out of range

xupeng19881010 opened this issue · comments

stderr: File "/usr/local/lib/python3.10/site-packages/bardapi/core.py", line 332, in get_answer
stderr: resp_dict = json.loads(resp.content.splitlines()[-5])[0][2]
stderr: IndexError: list index out of range

I am also getting the same error "list index out of range". Please someone tell the solution. I have tried Updating bardapi from version 0.1.34 -> 0.1.38
Still getting same error.

BriskPlayz, xupeng19881010

Is the error still recurring? There seems to be no problem with the code, and it is working normally. Which countries are you two in, and are you using a proxy?

Please take a moment to read the following FAQ and try following the instructions. It could possibly be an issue with your region or account.

This error is not reproducible, and you can debug in detail through the guidance of the following FAQ. Also, please try calling the method in a different way.

If the error persists, please reopen this issue with a proper issue template (including OS and code).

Since this error is non-reproducible and may not be a package issue, and is likely to be a problem that cannot be resolved at the package level, I am closing this issue.