-
Notifications
You must be signed in to change notification settings - Fork 409
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
Unable to connect to send grid api using http proxy #182
Comments
Hello @Kiran-N, When you build your SendGrid client: SendGrid sg = new SendGrid(SENDGRID_API_KEY, client); The second parameter can be your own custom I hope that helps! With Best Regards, Elmer |
Thank you Elmer, I used as below and its working.
|
Actually, the better approach would be to use built-in builder that produces a client that will parse system properties for you:
|
Thanks @vmandrychenko. Offhand, do you know if your code snippet includes the proxy configuration or not? I noticed in this example: #182 (comment) there was both a |
I do not, it's been a while. |
Issue Summary
I am using sendgrid inside a network secured by firewall. I consume several external api from my java application. I set the proxy settings as below to connect to the external APIs. When I am using the same settings for sendgrid , I am receiving the below error. Please let me know how to configure the proxy settings to connect to sendgrid.
```
System.setProperty("http.proxyHost", "proxy");
System.setProperty("http.proxyPort", "port");
System.setProperty("https.proxyHost", "proxy");
System.setProperty("https.proxyPort", "port");
The text was updated successfully, but these errors were encountered: