#1 Re: mORMot 1 » Erro while connecting to Atlas MongoDB » 2020-05-20 19:33:01

Has anyone managed to find the cause of this problem?

if i connect without authentication it works, however if i connect using simple authentication it breaks.

#2 mORMot 1 » Erro while connecting to Atlas MongoDB » 2020-03-30 20:57:09

marcolanger
Replies: 3

I'm trying to connect to an Atlas MongoDB server using a simples authentication, but i got a error after when calling 'OpenAuth' method.

My code.
Client := TMongoClient.Create('shard00',27017);
DB := Client.OpenAuth('admin','usr','pass');

The error happens at this method:
procedure TMongoClient.AfterOpen;
begin
if VarIsEmptyOrNull(fServerBuildInfo) then begin
fConnections[0].RunCommand('admin','buildinfo',fServerBuildInfo);
with _Safe(fServerBuildInfo)^.A['versionArray']^ do
if Count=4 then
fServerBuildInfoNumber := // e.g. 2040900 for MongoDB 2.4.9
integer(Values[0])*1000000+integer(Values[1])*10000+
integer(Values[2])*100+integer(Values[3]);
end;
end;


I got the updated version

Error message: Server did reset the connection: probably due to a bad formatted BSON request -> close socket

#3 Re: mORMot 1 » MongoDB transaction » 2019-08-06 14:02:01

I read all the content and realized that i really don't need to use transactions.

Thank you for your help and patience

#4 Re: mORMot 1 » MongoDB transaction » 2019-08-05 10:49:52

Do you have any predictions of when they will be supported?

#5 mORMot 1 » MongoDB transaction » 2019-08-02 17:26:53

marcolanger
Replies: 5

Is possible to use transaction with mormot and mongodb? if it does, how can i do it?

Board footer

Powered by FluxBB