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

Error: Could not get Google Bard. #31

Closed alokid closed 1 year ago

alokid commented 1 year ago

Error: Could not get Google Bard. at Module.init (file:///c:/alok/node_modules/bard-ai/index.js:29:16) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async hamz (c:\alok\connect\hamz.js:2467:1)

EvanZhouDev commented 1 year ago

Please provide more information, or a MRE—it works on my end.

Ensure that you can you Bard normally, and you are using the __Secure-1PSID cookie exactly.

neelhabib commented 1 year ago

async function brd() {
  await Bard.init(
    "YghfQJmM7w64HSzihRMOO6efTY_br9PCcOoL6E9tsTJ1OIuK_NRSeBb_sgTXIxpLeQ."
  );
  console.log(await askAI("who are you"));
}
brd();

this is my code. getting the same error.

alokid commented 1 year ago

async function brd() {
  await Bard.init(
    "YghfQJmM7w64HSzihRMOO6efTY_br9PCcOoL6E9tsTJ1OIuK_NRSeBb_sgTXIxpLeQ."
  );
  console.log(await askAI("who are you"));
}
brd();

this is my code. getting the same error.

My code is also the same, as above. experiencing an error

Error: Could not get Google Bard. at Module.init (file:///c:/alok/node_modules/bard-ai/index.js:29:16) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async brd (c:\alok\connect\hamz.js:2577:3) Promise {

Error: Could not get Google Bard. at Module.init (file:///c:/alok/node_modules/bard-ai/index.js:29:16) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async brd (c:\alok\connect\hamz.js:2577:3) } Unhandled Rejection at: Promise { Error: Could not get Google Bard. at Module.init (file:///c:/alok/node_modules/bard-ai/index.js:29:16) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async brd (c:\alok\connect\hamz.js:2577:3) } reason: Error: Could not get Google Bard. at Module.init (file:///c:/alok/node_modules/bard-ai/index.js:29:16) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async brd (c:\alok\connect\hamz.js:2577:3) Error: Could not get Google Bard. at Module.init (file:///c:/alok/node_modules/bard-ai/index.js:29:16) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async brd (c:\alok\connect\hamz.js:2577:3) Promise { Error: Could not get Google Bard. at Module.init (file:///c:/alok/node_modules/bard-ai/index.js:29:16) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async brd (c:\alok\connect\hamz.js:2577:3) }
alokid commented 1 year ago

image

EvanZhouDev commented 1 year ago

Try clearing cookies on bard.google.com, log in, and copy the new key.

alokid commented 1 year ago

Try clearing cookies on bard.google.com, log in, and copy the new key.

work, thank you so many good people for making the bard-ai module.

neelhabib commented 1 year ago

Try clearing cookies on bard.google.com, log in, and copy the new key.

ok. now its working.

ThatXliner commented 1 year ago

@EvanZhouDev Maybe add this to an FAQ section on the docs

EvanZhouDev commented 1 year ago

Yep! All v2 things I'm working on.

Jucamhc commented 1 year ago

I should continue doing it in javascript, do you know when it's ready or what I should modify

ThatXliner commented 1 year ago

Try clearing cookies on bard.google.com, log in, and copy the new key.

@Jucamhc