Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 [BUG]: TypeError: Cannot read properties of null (reading '4') #60

Open
3 tasks done
eliiran1231 opened this issue Aug 28, 2023 · 4 comments
Open
3 tasks done
Labels
bug Something isn't working

Comments

@eliiran1231
Copy link

Prerequisites

  • I have searched the issues and believe that it has not already been reported
  • It occurs on the latest version of bard-ai
  • I have read the FAQ and there are no solutions there

Bug Description

sometimes i get this error while talking to bard, after some digging, turns out that the variable chatData is null sometimes due to a problem in the parsing from json. here is the full error:

TypeError: Cannot read properties of null (reading '4') at #query (file:///C:/Users/mma91/OneDrive/%D7%A9%D7%95%D7%9C%D7%97%D7%9F%20%D7%94%D7%A2%D7%91%D7%95%D7%93%D7%94/milki/node_modules/bard-ai/index.js:240:32) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Chat.ask (file:///C:/Users/mma91/OneDrive/%D7%A9%D7%95%D7%9C%D7%97%D7%9F%20%D7%94%D7%A2%D7%91%D7%95%D7%93%D7%94/milki/node_modules/bard-ai/index.js:353:32) at async bardAI (file:///C:/Users/mma91/OneDrive/%D7%A9%D7%95%D7%9C%D7%97%D7%9F%20%D7%94%D7%A2%D7%91%D7%95%D7%93%D7%94/milki/index.js:53:22) at async file:///C:/Users/mma91/OneDrive/%D7%A9%D7%95%D7%9C%D7%97%D7%9F%20%D7%94%D7%A2%D7%91%D7%95%D7%93%D7%94/milki/index.js:115:32

Reproduction Steps

talk to bard for a while, i did notice it tends happen more in the evening

Other information

No response

Occurance Rate

I can reproduce this bug 60% of the time.

@eliiran1231 eliiran1231 added the bug Something isn't working label Aug 28, 2023
@ThatXliner
Copy link
Collaborator

Possible duplicate of #53

@eliiran1231
Copy link
Author

Possible duplicate of #53

bard is available in my country and i use the latest verison

@EvanZhouDev
Copy link
Owner

Are you using the __Secure-1PSIDTS cookie as well? See docs here: https://bard-ai.js.org/faq/#cant-use-bard

@izhekka
Copy link

izhekka commented Sep 12, 2023

I'm using both __Secure-1PSID and __Secure-1PSIDTS and face the same issue occasionally.
Refreshing the __Secure-1PSIDTS cookie solves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants