JagandeepBrar / lunasea

Self-hosted software controller built using Flutter

Home Page:https://www.lunasea.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SABnzdb history tab not working

danielstorch opened this issue · comments

The history tab for SABnzb is not working for me at all. It always fails loading and it is always the same error.

    {
        "timestamp": "2021-12-27T00:48:23.971",
        "type": "Error",
        "class_name": "package:lunasea/modules/sabnzbd/core/api/api.dart",
        "method_name": "SABnzbdAPI.getHistory",
        "message": "SABnzbd: Failed to fetch history",
        "error": "type '_OneByteString' is not a subtype of type 'List<dynamic>'",
        "stack_trace": [
            "package:lunasea/modules/sabnzbd/core/api/api.dart 347  SABnzbdAPI.getHistory",
            "package:flutter/src/widgets/async.dart                 _FutureBuilderState._subscribe.<fn>"
        ]
    },

Anythin I can do to fix this or is it a bug in the app?

This is on iOS

Hey @danielstorch,

You're actually experiencing the same problem as here: #289

TL;DR: A broken history record is trying to be parsed, take a look at your SABnzbd history via the web and look for any failed entries in your history and remove them. LunaSea fetches the most recent 200 history entries, so it must be within the first 20 pages.

Deleting failed entries fixed it, thanks 👍