• Json Error

    From kk4qbn@VERT/KK4QBN to All on Sun Jun 16 00:18:06 2024
    I have been getting this error a few times throughout the day for a good while now. I've tried to track where it is coming from but it really does'nt give me much to work with.

    Sat Jun 15 23:56:48 2024 master/aabef5821 kk4qbn.synchro.net
    srvc 0000 JSON SyntaxError: JSON.parse

    It does'nt seem to have any negative impact on anything on my system other than infating the daily error counter.

    "JSON.parse" does not exist in any of the json related javascripts, and I've tried searching for this error to no avail.

    Thanks!
    ---
    Tim (kk4qbn)
    +o kk4qbn.synchro.net
    þ Synchronet þ KK4QBN BBS - kk4qbn.synchro.net - Chatsworth, GA USA
  • From Gamgee@VERT/PALANTIR to kk4qbn on Sun Jun 16 09:22:00 2024
    kk4qbn wrote to All <=-

    I have been getting this error a few times throughout the day for
    a good while now. I've tried to track where it is coming from but
    it really does'nt give me much to work with.

    Sat Jun 15 23:56:48 2024 master/aabef5821 kk4qbn.synchro.net
    srvc 0000 JSON SyntaxError: JSON.parse

    It does'nt seem to have any negative impact on anything on my
    system other than infating the daily error counter.

    "JSON.parse" does not exist in any of the json related
    javascripts, and I've tried searching for this error to no avail.

    danc@palantir:/sbbs/exec$ grep -i json.parse *.js
    avatars.js: if((obj = JSON.parse(text.join(''))) != undefined) chksetup.js: finger_obj = JSON.parse(finger_result.join(''));
    exportcfg.js:const defaults = JSON.parse(JSON.stringify(options)); exportcfg.js: propfmt[arg] = JSON.parse('"' + value + '"');
    exportcfg.js: options[arg] = JSON.parse('"' + value + '"'); // support
    C-encoded chars (e.g. \t\r\n)
    exportcfg.js: options[arg] = JSON.parse('"' + argv[++i] + '"'); // support
    C-encoded chars (e.g. \t\r\n)
    exportcfg.js: obj = item; //JSON.parse(JSON.stringify(item)); imapservice.js: scpy = JSON.parse(JSON.stringify(saved_config[sub].Seen));
    importcfg.js: obj = JSON.parse(text[i]);
    install-xtrn.js: service = JSON.parse(JSON.stringify(item));
    replace_text.js: obj = JSON.parse(file.readAll().join("\n")); sbbslist.js: return JSON.parse(JSON.stringify(obj));
    sbbslist.js: if((bbs = JSON.parse(text.join(' '))) != undefined) sbbslist.js: bbs=JSON.parse(buf);
    sbbslist.js: alert("JSON.parse exception: " + e);
    updatefiles.js: var copy = JSON.parse(JSON.stringify(file));
    xtrnmenucfg.js: copyitem = JSON.parse(JSON.stringify(menu.items[itemids[selection]])); // make copy xtrnmenucfg.js: menuconfig = JSON.parse(config_src.toString());


    ... So easy, a child could do it. Child sold separately.
    --- MultiMail/Linux v0.52
    þ Synchronet þ Palantir BBS * palantirbbs.ddns.net * Pensacola, FL
  • From kk4qbn@VERT/KK4QBN to Gamgee on Sun Jun 16 13:20:34 2024
    Re: Re: Json Error
    By: Gamgee to kk4qbn on Sun Jun 16 2024 09:22:00

    "JSON.parse" does not exist in any of the json related javascripts, and
    I've tried searching for this error to no avail.
    danc@palantir:/sbbs/exec$ grep -i json.parse *.js avatars.js:
    if((obj = JSON.parse(text.join(''))) != undefined) chksetup.js:finger_obj =
    JSON.parse(finger_result.join(''));
    exportcfg.js:const defaults = JSON.parse(JSON.stringify(options)); exportcfg.js:propfmt[arg] = JSON.parse('"' + value + '"'); exportcfg.js:options[arg] = JSON.parse('"' + value + '"');// support C-encoded chars (e.g. \t\r\n)
    exportcfg.js:options[arg] = JSON.parse('"' + argv[++i] + '"');// support C-encoded chars (e.g. \t\r\n)
    exportcfg.js:obj = item; //JSON.parse(JSON.stringify(item)); imapservice.js:scpy =
    JSON.parse(JSON.stringify(saved_config[sub].Seen)); importcfg.js:obj = JSON.parse(text[i]);
    install-xtrn.js:service =
    JSON.parse(JSON.stringify(item));

    <<< SNIP >>>

    If you read my message again, you will notice I said it was not found in any of the JSON services scripts, the error is quite vague for a dumbass like me as say nothing srvc JSON.parse error. it gives no HOWS WHERES or WHYS, and you as always were able to tell me how much superior then I am without actually offering ANY information to help the matter.

    Your copy/paste job does nothing but tell me that JSON.parse is used in pretty much every javascript in the system. it does'nt tell me how I can fix the error by getting it defined where it needs to be, or whatever has to be done.

    I am in no way a genius and not fluent in Javascript, I know enough to get by a little though and dont ask for help much, for the simple reason that YOU like to reply to berate me because for some strange reason you have some kind of attraction to me of some sort, whether it be negative, or what I don't know but for some reason I live rent free in that MASSIVE brain of yours.

    For what its worth, Thanks for your input..
    ---
    Tim (kk4qbn)
    +o kk4qbn.synchro.net
    þ Synchronet þ KK4QBN BBS - kk4qbn.synchro.net - Chatsworth, GA USA
  • From Digital Man@VERT to kk4qbn on Sun Jun 16 14:27:55 2024
    Re: Json Error
    By: kk4qbn to All on Sun Jun 16 2024 12:18 am

    "JSON.parse" does not exist in any of the json related javascripts, and I've tried searching for this error to no avail.

    I found it in load/json-sock.js: Socket.prototype.recvJSON

    I'm committing a change to add more detail to the error message logged in this case. Hopefully that helps.
    --
    digital man (rob)

    Synchronet/BBS Terminology Definition #60:
    PET = Personal Electronic Transactor (Commodore computer)
    Norco, CA WX: 81.8øF, 45.0% humidity, 12 mph WSW wind, 0.00 inches rain/24hrs ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From poindexter FORTRAN@VERT/REALITY to kk4qbn on Sun Jun 16 08:00:00 2024
    kk4qbn wrote to All <=-

    Sat Jun 15 23:56:48 2024 master/aabef5821 kk4qbn.synchro.net
    srvc 0000 JSON SyntaxError: JSON.parse

    I get the same error every time I start my BBS, I've attributed it to
    an error or maybe a newline where it shouldn't be in one of my configs
    but can't find the culprit.


    ... Germany's official language is Portugese.
    --- MultiMail/Win v0.52
    þ Synchronet þ .: realitycheckbbs.org :: scientia potentia est :.
  • From kk4qbn@VERT/KK4QBN to Digital Man on Sun Jun 16 18:30:30 2024
    Re: Json Error
    By: Digital Man to kk4qbn on Sun Jun 16 2024 14:27:55

    "JSON.parse" does not exist in any of the json related javascripts, and
    I've tried searching for this error to no avail.

    I found it in load/json-sock.js: Socket.prototype.recvJSON

    Ahh.. I didn't even thinl to look in the load directory, Thank you!

    I'm committing a change to add more detail to the error message logged in this case. Hopefully that helps.

    Thanks Man, I know until I learn more about the way some of this works it will help me immensly.
    ---
    Tim (kk4qbn)
    +o kk4qbn.synchro.net
    þ Synchronet þ KK4QBN BBS - kk4qbn.synchro.net - Chatsworth, GA USA
  • From kk4qbn@VERT/KK4QBN to poindexter FORTRAN on Sun Jun 16 20:20:33 2024
    Re: Re: Json Error
    By: poindexter FORTRAN to kk4qbn on Sun Jun 16 2024 08:00:00

    Sat Jun 15 23:56:48 2024 master/aabef5821 kk4qbn.synchro.net srvc 0000
    JSON SyntaxError: JSON.parse

    I get the same error every time I start my BBS, I've attributed it to an error or maybe a newline where it shouldn't be in one of my configs but can't find the culprit.

    There are times when I won't get one for most of the day, sometimes I get a few of them. I'm sure it will be debugged soo enough though.
    ---
    Tim (kk4qbn)
    +o kk4qbn.synchro.net
    þ Synchronet þ KK4QBN BBS - kk4qbn.synchro.net - Chatsworth, GA USA
  • From Digital Man@VERT to poindexter FORTRAN on Sun Jun 16 17:44:27 2024
    Re: Re: Json Error
    By: poindexter FORTRAN to kk4qbn on Sun Jun 16 2024 08:00 am

    kk4qbn wrote to All <=-

    Sat Jun 15 23:56:48 2024 master/aabef5821 kk4qbn.synchro.net
    srvc 0000 JSON SyntaxError: JSON.parse

    I get the same error every time I start my BBS, I've attributed it to
    an error or maybe a newline where it shouldn't be in one of my configs
    but can't find the culprit.

    It's more likely a data file corruption (not a config) for of the JSON-service scripts.
    --
    digital man (rob)

    Synchronet "Real Fact" #129:
    Vertrauen first started running Synchronet (switched from WWIV) in July of 1991 Norco, CA WX: 78.1øF, 55.0% humidity, 11 mph W wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to kk4qbn on Sun Jun 16 17:45:23 2024
    Re: Re: Json Error
    By: kk4qbn to poindexter FORTRAN on Sun Jun 16 2024 08:20 pm

    Re: Re: Json Error
    By: poindexter FORTRAN to kk4qbn on Sun Jun 16 2024 08:00:00

    Sat Jun 15 23:56:48 2024 master/aabef5821 kk4qbn.synchro.net srvc 0000
    JSON SyntaxError: JSON.parse

    I get the same error every time I start my BBS, I've attributed it to an error or maybe a newline where it shouldn't be in one of my configs but can't find the culprit.

    There are times when I won't get one for most of the day, sometimes I get a few of them. I'm sure it will be debugged soo enough though.

    Yeah, we might just end up lowering the severity of the log message (e.g. from error to warning), so it's not logged as an error, but first would like more details (which should now be logged if/when it happens next).
    --
    digital man (rob)

    Rush quote #39:
    Sounds that build high like a mountain or notes that fall, gently, like rain Norco, CA WX: 78.1øF, 55.0% humidity, 11 mph W wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Ragnarok@VERT/DOCKSUD to kk4qbn on Sun Jun 16 21:36:26 2024
    El 16/6/24 a las 01:18, kk4qbn escribió:
    I have been getting this error a few times throughout the day for a good while
    now. I've tried to track where it is coming from but it really does'nt give me much to work with.

    Sat Jun 15 23:56:48 2024 master/aabef5821 kk4qbn.synchro.net
    srvc 0000 JSON SyntaxError: JSON.parse

    It does'nt seem to have any negative impact on anything on my system other than infating the daily error counter.

    "JSON.parse" does not exist in any of the json related javascripts, and I've tried searching for this error to no avail.

    Thanks!
    ---
    Tim (kk4qbn)
    +o kk4qbn.synchro.net
    � Synchronet � KK4QBN BBS - kk4qbn.synchro.net - Chatsworth, GA USA

    same here.. JSON.prse is used by several scripts, but the log message do
    no refer what script raise it...

    I think that the latest commit from DM will help

    Saludos!
    ---
    ï¿­ Synchronet ï¿­ Dock Sud BBS TLD 24 HS - bbs.docksud.com.ar
  • From kk4qbn@VERT/KK4QBN to Digital Man on Tue Aug 20 15:47:57 2024
    Re: Json Error
    By: Digital Man to kk4qbn on Sun Jun 16 2024 14:27:55

    "JSON.parse" does not exist in any of the json related javascripts, and
    I've tried searching for this error to no avail.

    I found it in load/json-sock.js: Socket.prototype.recvJSON

    I'm committing a change to add more detail to the error message logged in this case. Hopefully that helps.

    Ok, whatever you did in these last couple of commits has stopped all those errors I was getting, I was getting anywhere from 20-100 different of these weird errors daily, after the last update i'm getting NONE.. Maybe it was just an errant js file or something I don't know.. but the commit where you took the executable flag off all the JS files fixed it.
    ---
    Tim (kk4qbn)
    +o kk4qbn.synchro.net
    þ Synchronet þ KK4QBN BBS - kk4qbn.synchro.net - Chatsworth, GA USA