Skip to content

Commit

Permalink
Merge pull request #66 from sergemat/master
Browse files Browse the repository at this point in the history
#65 Fixed issue with HTTP status code 500 when creating Yahoo session
  • Loading branch information
sergemat authored Feb 23, 2024
2 parents 42c3e16 + f29126b commit 3182f87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions YahooFinanceApi/YahooFinanceApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
<PropertyGroup />
<PropertyGroup>
<Description>A handy Yahoo! Finance api wrapper, based on .NET standard 2.0</Description>
<Copyright>Copyright (c) 2016-2023 Karl Wan</Copyright>
<Copyright>Copyright (c) 2016-2024 Karl Wan</Copyright>
<AssemblyTitle>YahooFinanceApi</AssemblyTitle>
<VersionPrefix>2.3.1</VersionPrefix>
<VersionPrefix>2.3.2</VersionPrefix>
<LangVersion>latest</LangVersion>
<Authors>Karl Wan</Authors>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>YahooFinanceApi</AssemblyName>
<PackageId>YahooFinanceApi</PackageId>
<PackageTags>Yahoo;Finance;Stock;Quote;Eod;Dividend;Split</PackageTags>
<PackageReleaseNotes>
[02/22/2024] Fixed issue with HTTP status code 500 when creating Yahoo session
[12/10/2023] Fixed issue with HTTP status code 502 when creating Yahoo session
[5/8/2023] Fixed too many requests error caused by missing user agent header
[29/5/2023] Fixed approach to auth cookie and updated all dependencies
Expand Down Expand Up @@ -40,7 +41,7 @@
<GenerateNeutralResourcesLanguageAttribute>false</GenerateNeutralResourcesLanguageAttribute>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
<Version>2.3.1</Version>
<Version>2.3.2</Version>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<LangVersion>latest</LangVersion>
Expand All @@ -55,5 +56,6 @@
<PackageReference Include="CsvHelper" Version="30.0.1" />
<PackageReference Include="Flurl" Version="3.0.7" />
<PackageReference Include="Flurl.Http" Version="3.2.4" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>
</Project>
1 change: 1 addition & 0 deletions YahooFinanceApi/YahooSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public static async Task InitAsync(CancellationToken token = default)

var response = await "https://fc.yahoo.com"
.AllowHttpStatus("404")
.AllowHttpStatus("500")
.AllowHttpStatus("502")
.WithHeader(userAgentKey, userAgentValue)
.GetAsync()
Expand Down

0 comments on commit 3182f87

Please sign in to comment.