[Pas2js] rpcclient without parameters doesn't work
Luca Olivetti
luca at ventoso.org
Tue Sep 13 11:22:33 CEST 2022
Hello,
I see that if I try to use a method without parameters, e.g.
StartParams;
_Params:=EndParams
Result:=ExecuteRequest(RPCClassName,'logout',_Params, at DoSuccess,aOnFailure);
it triggers an error in the server
Cannot determine parameters: No "params" property found in request.
Debugging in the browser I see that in method TRPCClient.DoSendBatch
(packages/fcl-rpc/fprpcclient.pp), the condition
if Assigned(aRequest.Params)
evaluates to false, even if aRequest.Params is there (though it's an
empty array).
Bye
--
Luca
More information about the Pas2js
mailing list