karlwancl / YahooFinanceApi

A handy Yahoo! Finance api wrapper, based on .NET Standard 2.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Call failed with status code 500

kamoco opened this issue · comments

Anyone else experiencing this issue ?

This call is failing with 500 cannot find server - Call failed with status code 500 (Cannot find server.): GET https://fc.yahoo.com
var response = await "https://fc.yahoo.com"
.AllowHttpStatus("502")
.AllowHttpStatus("404")
.WithHeader(userAgentKey, userAgentValue)
.GetAsync()
.ConfigureAwait(false);

Added 500 and it fixed the issue

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