Visual Studio 2019 16,4, Nop 4.20

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 4 ans
Hi,

Since I switched to Visual Studio 2019 version 16.4, I get an error message.

I can start the shop and log in as an admin, but if I want to change to the admin area, the program crashes and stops with an error.

Class: HomeModelFactory => row 84
var rssData = _cacheManager.Get(NopModelCacheDefaults.OfficialNewsModelKey, () => _nopHttpClient.GetNewsRssAsync().Result);

error:
System.AggregateException: "One or more errors occurred. (Response status code does not indicate success: 503 (Service Temporarily Unavailable).)"

HttpRequestException: Response status code does not indicate success: 503 (Service Temporarily Unavailable).



Does anyone have the same problem and can help.

Best regards
Il y a 4 ans
Yes I have the same error
This is calling the nopCommerce news feed NewsRSS.aspx
Il y a 4 ans
Its not related to the VS version
Something with the nopCommerce website ?
Calling the url string in the browser works

https://www.nopcommerce.com/newsrss.aspx?version=4.20&localhost=true&hideadvertisements=false&storeurl=http://localhost:15536/

Problem is on this line of code
            var stream = await _httpClient.GetStreamAsync(url);
Il y a 4 ans
Thank you. I have disabled it now and it works.
Il y a 4 ans
The easiest 'fix' might be to comment out this line

\Presentation\Nop.Web\Areas\Admin\Views\Home\Index.cshtml
                        @await Component.InvokeAsync("NopCommerceNews")
Il y a 4 ans
It is the Cloudflare's DDoS protection blocking the request to NopCommerce. For more info, you can check this thread.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.