On Tue, 12 Nov 2013 10:50:18 GMT, Sönke Ludwig wrote:

Am 12.11.2013 08:18, schrieb Drasha:> On Mon, 11 Nov 2013 19:35:36 GMT, Sönke Ludwig wrote:

Can you try to insert a logInfo("getLastError: %s", reply.toJson().toString(); right after the query line in source/vibe/db/mongo/connection.d:262? The query itself looks OK so far, but maybe the reply reveals the issue.

This is what I get:

getLastError: {"documents":[{"errmsg":"no such cmd","ok":0,"bad cmd":{"getLastError":1}}],"cursor":0,"flags":0,"firstDocument":0}

Btw... I had to write

serializeToJson(reply).toString()

your version did not work. I got the "Error: no property 'toJson' for type 'vibe.db.mongo.connection.Reply'". I have dmd 2.063.2 and vibe.d master;

Martin