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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The proxy does not work #23

Open
owlcloud opened this issue Jun 10, 2023 · 3 comments
Open

The proxy does not work #23

owlcloud opened this issue Jun 10, 2023 · 3 comments

Comments

@owlcloud
Copy link

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

@PawanOsman
Copy link
Owner

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

@owlcloud
Copy link
Author

the error is your standard when using a proxy.

@owlcloud
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants