• IMAPS error

    From Keyop Troy@VERT to GitLab issue in main/sbbs on Sat Apr 16 19:01:47 2022
    open https://gitlab.synchro.net/main/sbbs/-/issues/397

    Sun Apr 17 02:43:16 2022 master/632e51d8e
    srvc 0079 IMAPS <Keyop> !JavaScript /sbbs/exec/imapservice.js line 1861: TypeError: args.shift().toUpperCase is not a function

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Keyop Troy@VERT to GitLab note in main/sbbs on Sat May 14 16:42:46 2022
    https://gitlab.synchro.net/main/sbbs/-/issues/397#note_2580

    Still getting this error - any chance of a fix?

    Sat May 14 21:35:35 2022 master/6de0ebc0d
    srvc 0575 IMAPS <Keyop> !JavaScript /sbbs/exec/imapservice.js line 1861: TypeError: args.shift().toUpperCase is not a function

    Sat May 14 21:35:35 2022 master/6de0ebc0d
    srvc 0614 IMAPS <Keyop> !JavaScript /sbbs/exec/imapservice.js line 1861: TypeError: args.shift().toUpperCase is not a function

    Sat May 14 21:35:35 2022 master/6de0ebc0d
    srvc 0590 IMAPS <Keyop> !JavaScript /sbbs/exec/imapservice.js line 1861: TypeError: args.shift().toUpperCase is not a function

    Sat May 14 21:35:35 2022 master/6de0ebc0d
    srvc 0604 IMAPS <Keyop> !JavaScript /sbbs/exec/imapservice.js line 1861: TypeError: args.shift().toUpperCase is not a function

    Sat May 14 21:35:36 2022 master/6de0ebc0d
    srvc 0615 IMAPS <Keyop> !JavaScript /sbbs/exec/imapservice.js line 1861: TypeError: args.shift().toUpperCase is not a function

    Sat May 14 21:35:36 2022 master/6de0ebc0d
    srvc 0610 IMAPS <Keyop> !JavaScript /sbbs/exec/imapservice.js line 1861: TypeError: args.shift().toUpperCase is not a function

    Sat May 14 21:35:36 2022 master/6de0ebc0d
    srvc 0592 IMAPS <Keyop> !JavaScript /sbbs/exec/imapservice.js line 1861: TypeError: args.shift().toUpperCase is not a function

    Sat May 14 21:35:36 2022 master/6de0ebc0d
    srvc 0584 IMAPS <Keyop> !JavaScript /sbbs/exec/imapservice.js line 1861: TypeError: args.shift().toUpperCase is not a function

    Sat May 14 21:35:36 2022 master/6de0ebc0d
    srvc 0578 IMAPS <Keyop> !JavaScript /sbbs/exec/imapservice.js line 1861: TypeError: args.shift().toUpperCase is not a function

    Sat May 14 21:35:36 2022 master/6de0ebc0d
    srvc 0590 IMAPS <Keyop> !JavaScript /sbbs/exec/imapservice.js line 1861: TypeError: args.shift().toUpperCase is not a function

    Sat May 14 21:35:36 2022 master/6de0ebc0d
    srvc 0594 IMAPS <Keyop> !JavaScript /sbbs/exec/imapservice.js line 1861: TypeError: args.shift().toUpperCase is not a function

    Sat May 14 21:35:38 2022 master/6de0ebc0d
    srvc 0575 IMAPS <Keyop> !JavaScript /sbbs/exec/imapservice.js line 1861: TypeError: args.shift().toUpperCase is not a function

    Sat May 14 21:42:15 2022 master/6de0ebc0d
    srvc 0617 IMAPS <Keyop> !JavaScript /sbbs/exec/imapservice.js line 1861: TypeError: args.shift().toUpperCase is not a function

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Keyop Troy@VERT to GitLab note in main/sbbs on Mon May 16 10:16:09 2022
    https://gitlab.synchro.net/main/sbbs/-/issues/397#note_2582

    As per nelgin's suggestion - after adding this line at 1861:

    log(LOG_INFO, "args.shift() is " + args.shift());

    I get:

    May 16 17:58:58 lr08 synchronet[2362]: srvc 4048 IMAPS args.shift() is NOT
    May 16 17:58:58 lr08 synchronet[2362]: srvc 4048 IMAPS args.shift() is DELETED May 16 17:58:58 lr08 synchronet[2362]: srvc 4048 IMAPS <Keyop> !JavaScript /sbbs/exec/imapservice.js line 1862: TypeError: args.shift() is undefined
    May 16 17:59:01 lr08 synchronet[2362]: srvc 4048 IMAPS args.shift() is UNSEEN May 16 17:59:01 lr08 synchronet[2362]: srvc 4048 IMAPS <Keyop> !JavaScript /sbbs/exec/imapservice.js line 1862: TypeError: args.shift() is undefined
    May 16 17:59:01 lr08 synchronet[2362]: srvc 4051 IMAPS args.shift() is UNSEEN May 16 17:59:01 lr08 synchronet[2362]: srvc 4051 IMAPS <Keyop> !JavaScript /sbbs/exec/imapservice.js line 1862: TypeError: args.shift() is undefined

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Keyop Troy@VERT to GitLab note in main/sbbs on Mon May 16 10:41:00 2022
    https://gitlab.synchro.net/main/sbbs/-/issues/397#note_2583

    May 16 17:59:01 lr08 synchronet[2362]: srvc 4048 IMAPS Logging in Keyop
    May 16 17:59:01 lr08 synchronet[2362]: srvc 4048 IMAPS args.shift() is UNSEEN May 16 17:59:01 lr08 synchronet[2362]: srvc 4051 IMAPS Logging in Keyop
    May 16 17:59:01 lr08 synchronet[2362]: srvc 4048 IMAPS <Keyop> !JavaScript /sbbs/exec/imapservice.js line 1862: TypeError: args.shift() is undefined
    May 16 17:59:01 lr08 synchronet[2362]: srvc 4051 IMAPS args.shift() is UNSEEN May 16 17:59:01 lr08 synchronet[2362]: srvc 4051 IMAPS <Keyop> !JavaScript /sbbs/exec/imapservice.js line 1862: TypeError: args.shift() is undefined
    May 16 17:59:02 lr08 synchronet[2362]: srvc 4048 IMAPS Logging out Keyop
    May 16 17:59:02 lr08 synchronet[2362]: srvc 4048 IMAPS service thread terminated (3 clients remain, 2 total, 5143 served)
    May 16 17:59:02 lr08 synchronet[2362]: srvc 4051 IMAPS Logging out Keyop
    May 16 17:59:02 lr08 synchronet[2362]: srvc 4051 IMAPS service thread terminated (2 clients remain, 1 total, 5143 served)

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deon George@VERT to GitLab note in main/sbbs on Mon May 16 18:32:39 2022
    https://gitlab.synchro.net/main/sbbs/-/issues/397#note_2584

    Using `log(LOG_INFO, "args.shift() is " + args.shift());` is not a good idea, because it will *remove* the next item from `args` (and thus a subsequent call to it could yield an empty result).

    I suggest you use `log(LOG_INFO, "args is " + JSON.stringify(args));` instead - that way you can see what the contents of args is (and then manually determine what args.shift() may yield).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Keyop Troy@VERT to GitLab note in main/sbbs on Mon May 16 19:23:22 2022
    https://gitlab.synchro.net/main/sbbs/-/issues/397#note_2585

    We had a debate about this on the irc #synchronet channel, and the code we've gone with (as suggested by Deuce) is:

    log(LOG_INFO, "args type: " + typeof(args));

    log(LOG_INFO, "args toSource: " + args.toSource());

    Hopefully this will help track down the issue.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Keyop Troy@VERT to GitLab note in main/sbbs on Sat May 28 18:24:57 2022
    https://gitlab.synchro.net/main/sbbs/-/issues/397#note_2598

    Ok we have a trigger on the 28th with the logging code added:

    Extra Code:

    log(LOG_INFO, "args type: " + typeof(args));
    log(LOG_INFO, "args toSource: " + args.toSource());

    syslog:

    May 28 20:26:38 lr08 synchronet[1198426]: srvc 0125 IMAPS args type: object

    May 28 20:26:38 lr08 synchronet[1198426]: srvc 0125 IMAPS args toSource: [["OR", "TO", "Premier inn", ["OR", "CC", "Premier inn", ["OR", "FROM", "Premier inn", ["OR", "SUBJECT", "Premier inn", [["OR", "FROM", "P
    remier", ["OR", "SUBJECT", "Premier", ["OR", "TO", "Premier", "CC", "Premier"]]], ["OR", "FROM", "inn",

    May 28 20:26:38 lr08 synchronet[1198426]: srvc 0125 IMAPS <Keyop> !JavaScript /sbbs/exec/imapservice.js line 1864: TypeError: args.shift().toUpperCase is not a function

    May 28 20:26:38 lr08 synchronet[1198426]: srvc 0138 IMAPS args type: object

    May 28 20:26:38 lr08 synchronet[1198426]: srvc 0138 IMAPS args toSource: ["DELETED"]

    May 28 20:26:38 lr08 synchronet[1198426]: srvc 0128 IMAPS Logging out Keyop


    Does this help?

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Andre Robitaille@VERT to GitLab note in main/sbbs on Sun May 29 05:59:43 2022
    https://gitlab.synchro.net/main/sbbs/-/issues/397#note_2599

    What specifically did you do to trigger that search for a bunch of variations of premier inn? Are you able to recreate it, and if so you should describe the steps to recreate it.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Keyop Troy@VERT to GitLab note in main/sbbs on Sun May 29 14:21:55 2022
    https://gitlab.synchro.net/main/sbbs/-/issues/397#note_2600

    Hi Andre, yes just worked out the trigger event.

    Searching for any string within the iOS mail client.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nelgin@VERT/EOTLBBS to Keyop Troy on Mon May 30 02:26:28 2022
    On Sun, 29 May 2022 14:21:55 -0700
    "Keyop Troy" <keyop.troy@VERT> wrote:

    https://gitlab.synchro.net/main/sbbs/-/issues/397#note_2600

    Hi Andre, yes just worked out the trigger event.

    Searching for any string within the iOS mail client.

    Ok well. If you don't do that, your error will go away :)

    Solved.
    --
    End Of The Line BBS - Plano, TX
    telnet endofthelinebbs.com 23
    ---
    þ Synchronet þ End Of The Line BBS - endofthelinebbs.com
  • From Keyop@VERT/MAGNUMUK to Nelgin on Wed Jun 1 00:05:58 2022
    Re: Re: IMAPS error
    By: Nelgin to Keyop Troy on Mon May 30 2022 02:26:28

    Ok well. If you don't do that, your error will go away :)

    Solved.

    Oh Nelgin my dear fellow - you make me laugh and cry at the same time :)

    ---
    þ Synchronet þ >>> Magnum BBS <<< - bbs.magnum.uk.net
  • From Deuc¿@VERT to GitLab note in main/sbbs on Mon Oct 3 17:42:58 2022
    https://gitlab.synchro.net/main/sbbs/-/issues/397#note_2764

    Aha! Yeah, it looks like the parenthesis support is only half-baked. I'll dig into this when I have more time, thanks for tracking this down!

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Keyop Troy@VERT to GitLab note in main/sbbs on Tue Sep 12 15:13:12 2023
    https://gitlab.synchro.net/main/sbbs/-/issues/397#note_3950

    Hi Deuce - any further thoughts on this one, as my error.log fills up when I search for text on my iPhone?

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Keyop Troy@VERT to GitLab note in main/sbbs on Tue Sep 12 15:30:59 2023
    https://gitlab.synchro.net/main/sbbs/-/issues/397#note_3951

    Latest error.log related to this issue:


    Tue Sep 12 23:23:56 2023 master/c9e643727

    srvc 0159 IMAPS <Keyop> !JavaScript /sbbs/exec/imapservice.js line 1859: TypeError: args.shift().toUpperCase is not a function


    Tue Sep 12 23:24:37 2023 master/c9e643727

    srvc 0153 IMAPS <Keyop> !JavaScript /sbbs/exec/imapservice.js line 1859: TypeError: args.shift().toUpperCase is not a function

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Keyop Troy@VERT to GitLab note in main/sbbs on Thu Feb 29 17:18:05 2024
    https://gitlab.synchro.net/main/sbbs/-/issues/397#note_5019

    This issue has been resolved.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Keyop Troy@VERT to GitLab issue in main/sbbs on Thu Feb 29 17:18:05 2024
    close https://gitlab.synchro.net/main/sbbs/-/issues/397

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net