praeclarum / FuGetGallery

An alternative web UI for browsing nuget packages
https://www.fuget.org
MIT License
683 stars 121 forks source link

OutOfMemoryException thrown when searching any package #96

Closed cmxl closed 3 years ago

cmxl commented 4 years ago

Example: https://www.fuget.org/packages?q=Microsoft.Net.Http

Output:

System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. 
at System.String.CreateStringFromEncoding(Byte* bytes, Int32 byteLength, Encoding encoding) 
at System.Text.UTF8Encoding.GetString(Byte[] bytes, Int32 index, Int32 count) 
at System.Net.Http.HttpContent.ReadBufferAsString(ArraySegment`1 buffer, HttpContentHeaders headers) 
at System.Net.Http.HttpClient.GetStringAsyncCore(Task`1 getTask) 
at FuGetGallery.PackagesSearchResults.ResultsCache.GetValueAsync(String q, HttpClient httpClient, CancellationToken token)
in D:\home\site\repository\Data\PackagesSearchResults.cs:line 84
praeclarum commented 3 years ago

This is a transient error that I'm tracking with #48

Thanks!