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

Not able to get data from config server when updated my app from 2.0 -> 2.1 #52

Closed
chiragd03 opened this issue Sep 10, 2018 · 3 comments

Comments

@chiragd03
Copy link

Hello,
I have an existing web api project(dotnet core 2.0.7) which connects to Config Server and fetches data. I updated my project (dotnet core 2.1.0), and since then i am unable to fetch data from config server.
I only did the following changes to my project

.csproj
Earlier
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.7" />
<PackageReference Include="Pivotal.Extensions.Configuration.ConfigServerCore" Version="2.0.0" />
</ItemGroup>

Now
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.1.0" />
<PackageReference Include="Pivotal.Extensions.Configuration.ConfigServerCore" Version="2.1.0" />
</ItemGroup>

Can you please help

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/160376735

The labels on this github issue will be updated when the story is started.

@TimHess
Copy link
Member

TimHess commented Sep 10, 2018

Do you get any error messages? It could help if you enable logging

@chiragd03
Copy link
Author

Hello @TimHess
Thanks , i found the issue
In the logs i found
Could not locate PropertySource: System.AggregateException: One or more errors occurred. (The SSL connection could not be established, see inner exception.) ---> System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.

This issue i was facing while using httpClient with dotnet core 2.1, as a fix i added
AppContext.SetSwitch("System.Net.Http.UseSocketsHttpHandler", false);
at the starting of Program.cs
Now its working fine.

Thanks again

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

No branches or pull requests

4 participants