EvanZhouDev / bard-ai

A lightweight library to access Google Bard.
https://www.npmjs.com/package/bard-ai
GNU General Public License v3.0
117 stars 31 forks source link

🐛 [BUG]: Cannot read properties of null (reading '4') #64

Open jonvicbarcenas opened 1 year ago

jonvicbarcenas commented 1 year ago

Prerequisites

Bug Description

when using the id it works at first then as the second requesting using the same id, it says Cannot read properties of null (reading '4')

Reproduction Steps

Cannot read properties of null (reading '4')

Other information

No response

Occurance Rate

I can reproduce this bug 100% of the time..

ThatXliner commented 1 year ago

Possible duplicate of #53

regexman1 commented 11 months ago

Seems like bard AI has changed the format of their response.

Fonz001 commented 11 months ago

Same here, anyone has a workaround/fix?

XCraftTM commented 11 months ago

Any News Yet? Same issue...

Sunda001 commented 11 months ago

anyone got fix?

EvanZhouDev commented 11 months ago

The workaround is to use palm-api...

The other workaround is to make sure you copy both the PSID and PSIDTS, then close the Bard tab. This should make the key last slightly longer.

XCraftTM commented 8 months ago

Palm-api is not available for my region, lol.

gamersindo1223 commented 8 months ago

@EvanZhouDev what the differences between palm-api and bard-ai?

KuntilBogel commented 7 months ago

hello, whenever I tried to run bard-ai on my vps I got this result ]}'

38 [["wrb.fr",null,null,null,null,[9]]] 57 [["di",235],["af.httprm",234,"6657988512651642464",27]] 25 [["e",4,null,null,132]]

I've already changed my cookies multiple times, it only worked when running it on a github codespaces, but when I ran it on my vps it does not work!

KuntilBogel commented 7 months ago

@EvanZhouDev @ThatXliner