-
Notifications
You must be signed in to change notification settings - Fork 107
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
Spring Boot app with Azure App Configuration - doesn't work behind corporate firewall / doesn't pick proxy settings #656
Comments
@JJustas what is the connection type you are using? We have been looking at the issue. We are unable to reproduce the issue. Any further information about how you set up your proxy would be helpful. |
SDK provided a way to setup the proxy options when building a client. I created a PR that shows the sample for how to use it. Azure/azure-sdk-for-java#10097 |
Thanks but it should pick proxy settings automatically if any provided - it would be more convenient and save time for others. |
Azure Core 1.2.3 has support it already. (the latest App Config SDK 1.1.1 use Azure Core 1.2.3)
as well. |
@JJustas In version 1.2.5 you are now able to set up proxy info. See https://github.com/microsoft/spring-cloud-azure/tree/master/spring-cloud-azure-starters/spring-cloud-starter-azure-appconfiguration-config#client-builder-customization for details. |
We are having a similar issue with using Evenhub behind a corporate firewall. It seems that I can set the proxy information via the configuration once I update to com.azure:azure-messaging-eventhubs:5.1.0, but I can't seem to figure out how to set the transportType to AmqpWebSockets. This causes an exception. It appears that DefaultEventHubClientFactory creates new EventHubClientBuilders and doesn't have a mechanism to set the transporType. If someone could add transportType to the AzureEventHubProperties and pass it along to the clientBuilders through the clientFactory that might solve the issue. I was having trouble overwriting the clientFactory bean in our application to do this very thing. It seems that AzureEventHubAutoConfiguration is forcibly imported in EventHubBinderConfiguration which prevents our bean from being used. For some reason when we duplicate EventHubBinderConfiguration in our app to resolve the bean issue we loose the ability to publish/read from multiple eventhub namespaces. |
@MrOstling, we have opened a new issue for your problem, and you can follow it #702 up. |
Is fixed as of version 1.x.5. Let us know if their are any additional issues. |
Current Behavior / Steps to reproduce
I have created simple Spring Boot app with Azure App Configuration lib according to Create a Java Spring app with Azure App Configuration. I use
Spring Boot v2.2.5.RELEASE
andWhen I try to run the app, console outputs logo and version:
It stops for a few mins and then throws:
Configured proxy settings using VM args (-Dhttps.proxyHost, -Dhttps.proxyPort, -Dhttp.nonProxyHosts), it gives effect for other sites but for this case didn't help.
When I try access the same App Config from the same machine using Azure CLI, .NET Core, Azure Functions in .NET core, it works well and displays the values. If I deploy the same Spring Boot app to the cloud, it also works well.
Possible Solution
The issue seems to be the same as appconfiguration-config does not pick up proxy setting. However, I use the latest library but the problem still exists.
The text was updated successfully, but these errors were encountered: