makeWebRequest :context

From time to time I have an error after makeWebRequest(url, params, options,method(:onReceive))

function onReceive(ResponseCode, d, context_array)

{...}

Error: Not Enough Arguments Error
Details: Failed invoking <symbol>
Stack:
  - onReceive()

I put array into :context

var options =
        {:context  => [2,3]}

  • :context — (Lang.Object) —

    A user-specific context object to be passed to the response callback. The callback will need to accept a third parameter if this value is populated.

Is [2,3] an object? Because from time to time system try to call onReceive with 2 argument - means :context=null. Should I make members/globals for it or it's a bug?

  • is any problem to answer to my question? I'd like to publish new version and wait because maybe should add something to code.

  • I understand, nobody knows answer. No good documentation, examples and answer. No way, Ihave to do something and wait for errors...

  • Nobody has answered, new version in store and:

    Error Name: Not Enough Arguments Error
    Occurrences: 1
    First Occurrence: 2021-12-13
    Last Occurrence: 2021-12-13
    Devices:
        Venu® Sq: 3.00
    App Versions: 1.19.0
    Languages: eng
    Backtrace:
        PSX1_Back.onReceive:347

    function onReceive(ResponseCode, d, context_array)
    {
    }

    function makREQ(url, params, context)
    {      

      var options =
      {
           ....
           :context             => context
      };

      COM.makeWebRequest(url, params, options, method(:onReceive));
      ...

    where context is one of member of SYS.ServiceDelegate

    var mCtx_1 = [2, 1],
    var mCtx_2 = [2, 2],

    and I don't know if it is device/sdk error or any old respond