#1 mORMot 1 » CallBack and 404 Error » 2018-08-31 13:05:34

Dimitri
Replies: 0

Hi

My project is based on sample 31, LongWorkClient and LongWorkServer.
I use the client to trigger scripts on the server.
CallBack allows the server to notify the client that script execution is complete.
When I use my service several times by pressing a button, it's all right.
However when I use the callback to trigger the next “MyService.MyFunction” I get an exception in the Client project with “returned status 'Not Found' (404 - Network problem or request timeout)”.
During the second call the server is well requested but there is no return.
I can’t even do a ServerTimeStampSynchronize after the first call.

Any ideas ?

Thx

#2 Re: mORMot 1 » Callback Timeout » 2018-07-10 08:43:01

Thank you for your quick answer.

#3 mORMot 1 » Callback Timeout » 2018-07-10 07:45:37

Dimitri
Replies: 2

Hi,

I modified the sample project 31 (LongWorkServer and LongWorkClient) to change the callback procedures into functions (WorkFinished and WorkFailed).
I added Sleep(5000) into these functions to simulate a long work into the callback functions.
I have this error message :

"TInterfacedObjectFakeServer.FakeCall(ILongWorkCallback.WorkFinished) failed: 'TWebSocketServerRest.Callback(1) received status=404 from root/LongWorkCallback.WorkFinished/1''

How could I set the timeout ?

Thx

#5 mORMot 1 » TSQRawBlob property between a mORMmot server and an Android client » 2018-06-08 08:30:12

Dimitri
Replies: 2

Hi,

I would like to transmit a TSQLRawBlob property between a mORMmot server and an Android client.
On the one hand I use the TSQLRawBlob defined in the unit mORMot.pas on the other hand I use the TSQLRawBlob defined in the unit SynCrossPlatformREST.pas.

To set the RTTI property in the server I do :

lPropInfo := ClassFieldPropWithParents(aDest.ClassType, aPropertyName);
if Assigned(lPropInfo) then
begin
  lPropInfo^.SetFromVariant(aDest, aValue);
end;

How can I do the same in my Android application without the ClassFieldPropWithParents and SetFromVariant methods ?

Thx

Board footer

Powered by FluxBB