GoogleBard icon indicating copy to clipboard operation
GoogleBard copied to clipboard

The proxy does not work

Open owlcloud opened this issue 1 year ago • 3 comments

I install proxies as shown in the example, but they don't work. I used a proxy for bing and they work 100%. On replit, I insert only cookies and it works, I connect a proxy, and the proxy does not work on replit either. The error is definitely not in the proxy and not in the cookies, because they work separately. Cookies from usa

owlcloud avatar Jun 10 '23 22:06 owlcloud

can you give us a reproducible example? or any error message you get

PawanOsman avatar Jun 13 '23 13:06 PawanOsman

the error is your standard when using a proxy.

owlcloud avatar Jun 13 '23 13:06 owlcloud

import { Bard } from "googlebard";

let cookies = __Secure-1PSID=<YOUR_COOKIE>; let bot = new Bard(cookies, { inMemory: false, savePath: "./conversations.json", proxy: { host: process.env.PROXY_HOST, port: process.env.PROXY_PORT, auth: { username: process.env.PROXY_USERNAME, password: process.env.PROXY_PASSWORD, }, protocol: "http", }, });

proxy with authorization, USA, bought on the service, works with bing

it seems to me that the error is in axios. Could you fix it or rewrite it using fetch?

owlcloud avatar Jun 13 '23 13:06 owlcloud