Token Type 'Number' as a string error at launch

Issue #110 open
Matti Meikalainen created an issue

When starting the APP I get the following error (occurs before the main window appears):

Cannot get value of a token type 'Number' as a string.
at System.Text.Json.Utf8JsonReader.GetString()
at CaVE.NSO_Database.a(Utf8JsonReader& A_0)

Pressing "OK" loads the app, however functionality appears impaired with (for example) the 'Mods' tab being empty and I am unable to add mods back to the list (I previously had NSO-N64-Hide_Player_Icon-v2_16, NSO-N64-Hide_Background-v2_16 and NSO-N64-DisplayEx-v2_16 installed, but with DisplayEx deactivated).

CaVE version v1.5.0.3, build date 20/06/2024 20:36:21
NSO version Nintendo 64 Nintendo Switch Online v1376256
User platform Windows 11 Pro [v. 10.0.22631] with locale United Kingdom

Please find debug log attached.

Comments (3)

  1. Dark Akuma

    The error suggests its trying to load a json parameter that is a number, when it expects a string.

    "some_json_param": 1
    

    vs

    "some_json_param": "1"
    

    That is the difference in how a JSON string is done. The quotations.

    I… have absolutely no idea how CaVE could output that. So I have to ask… have you manually edited your lclassics.titlesdb file for some reason?

    In theory, there should be no way for CaVE to save a int for a parameter that only accepts strings.

  2. Log in to comment