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

Using HTTP Proxy with Credentials #207

Open
gigaiis opened this issue Jul 21, 2024 · 1 comment
Open

Using HTTP Proxy with Credentials #207

gigaiis opened this issue Jul 21, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@gigaiis
Copy link

gigaiis commented Jul 21, 2024

I expected to be able to use the format http://:@: for Proxy Authentication, but it seems that this is not supported. Is my understanding correct, or is there a different way to achieve this functionality?

error: "java.lang.RuntimeException: java.io.IOException: Failed to authenticate with proxy"

@Blarc
Copy link
Owner

Blarc commented Jul 22, 2024

Hey @gigaiis, we use langchain4j for making requests to OpenAI. The proxy is configured with their builder here:

builder.proxy(Proxy(Proxy.Type.HTTP, InetSocketAddress(uri.host, uri.port)))

I'm not sure how could I reproduce your problem and try this since I don't use a proxy. Maybe you can try to test and figure out how langchain4j expects the users to authenticate with the proxy. I'll be gladly to update the plugin if needed.

@Blarc Blarc added the help wanted Extra attention is needed label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants