GoogleBard
GoogleBard copied to clipboard
The proxy does not work
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
can you give us a reproducible example? or any error message you get
the error is your standard when using a proxy.
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?