Skip to content

"Error loading lookups" - Newtonsoft.Json.JsonReaderException due to Gallery site down #240

Description

@UlyssesWu

/// <summary>
/// Gets extra filds from remote gallery if gallery supports it
/// </summary>
/// <param name="id">Package ID</param>
/// <returns>Object with extra package fields</returns>
public static PackageExtra GetPackageExtra(string id)
{
try
{
var url = BlogConfig.GalleryFeedUrl.Replace("/nuget", "/api/extras/" + id);
WebClient wc = new WebClient();
string json = wc.DownloadString(url);
return JsonConvert.DeserializeObject<PackageExtra>(json);
}
catch (Exception)
{
return null;
}
}

Sadly, the url http://dnbe.net/v01/nuget is down.
Therefore, JsonConvert.DeserializeObject throws a Newtonsoft.Json.JsonReaderException, and causes an Error loading lookups (GET /api/lookups returns 502), makes the whole blog unstable - e.g. Unable to load and change settings, unable to set categories for a new blog post etc.

My solution is removing all 3rd party themes in Custom\Themes. Just keep RazorHost and Standard themes.
I have no idea if you'll still fix this, but this is a serious problem and I should leave my solution here for other users.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions