txmongo icon indicating copy to clipboard operation
txmongo copied to clipboard

Incompatible with any version of DocumentDB

Open radifalco opened this issue 2 years ago • 3 comments

Whether I use the 3.6, 4.x, or 5.0 mongo emulation, txmongo is incompatible with DocumentDB. PyMongo seems to work just fine on all. Inserts and updates work great, the only issues are find and find_with_cursor. Unfortunately, the error message is not very specific.

{
   'ok': 0.0, 
   'code': 303, 
   'errmsg': 'Legacy opcodes are not supported', 
   'operationTime': Timestamp(1682704478, 1)
}

radifalco avatar Apr 28 '23 17:04 radifalco

Hi, @radifalco. It seems to be a duplicate of #279. Could you please try to test txmongo's PR #262 to see if it works with DocumentDB?

IlyaSkriblovsky avatar Apr 29 '23 07:04 IlyaSkriblovsky

@IlyaSkriblovsky, I must have not setup PR-262 correctly because I started getting legacy opcodes for everything including "inserts" and not just for find like before.

radifalco avatar May 03 '23 13:05 radifalco

Not sure how it might happen beacuse #262 is intended to use new-style commands for all CRUD operations... But actually I've tested it only with MongoDB and Microsoft's CosmosDB, but not with Amazon's DocumentDB

IlyaSkriblovsky avatar May 06 '23 11:05 IlyaSkriblovsky