#1 2026-01-27 20:54:27

ulrichd
Member
Registered: 2018-07-30
Posts: 24

Logged error with interface based service

Logging on the client side adds

20260127 10231124  " ERROR     mormot.rest.http.client.TRestHttpClientSocket(7ed6e970) GET ols/stat/soa returned 400 (Bad Request) with message {  "errorCode":400,  "errorText":"Invalid URI"  }

to the log on calling

Client.ServiceDefine([ILicenseServer], sicShared);

Is there some way to suppress this call, or what do I have to do on the server side to satisfy this request?

Offline

#2 2026-01-28 08:01:43

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,397
Website

Re: Logged error with interface based service

I guess you did not update the server source. The server needs to be updated to the last mORMot version too.
New clients calls GET stat/soa once for all interfaces to retrieve all exepected contracts at once.

But this won't hurt the client: it will continue to call _contract_ for each service on oldest servers.

Offline

#3 2026-01-28 19:37:19

ulrichd
Member
Registered: 2018-07-30
Posts: 24

Re: Logged error with interface based service

Confirmed: after compiling the server side with the latest library version the error is no longer logged on the client side.

Indeed, everything was working without issue: I just wanted to address the error in the log.

Thanks ab, that was an easy "fix"! big_smile

Offline

Board footer

Powered by FluxBB