You are not logged in.
Yesterday I updated the source of the mormot and started receiving an exception in the StaticMongoDBRegisterAll method for Mongo client. I realized that the error occurs for all collections that are empty. The error message is as follows:
Server did reset the connection: probably due to a bad formatted bson request - > close socket"
Offline
Hi Ab,
Thanks for the answer. The problem is happening in the TSQLRestStorageMongoDB.TableHasRows method of the unit mormotmongodb. It happens when he executes the fCollection.IsEmpty method for every collection that is empty.
Offline
hi Ab,
I debugged a little more about the problem and found the error exactly in the method AsynchRecv
result := Recv(sock,buf,buflen,0);
in the SynCrtSock unit
Last edited by fabiovip2019 (2020-03-09 13:45:16)
Offline
Could you try with https://synopse.info/fossil/info/1078ba0f05 ?
Offline
Thanks Ab, I will perform the tests I report here. Doubt, do you still recommend these reviews to use with mormot?
* FPC trunk SVN 40491;
* Lazarus trunk SVN 59757.
Offline
Hi,
I redid the entire installation on lazarus + fcp recommended in the documentation, updated with the trunk of the mormot but the error persists, I cannot initialize TSQLRecords linked to empty collections. Does anyone have any idea what it might be?
Offline