Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible with any version of DocumentDB #286

Open
radifalco opened this issue Apr 28, 2023 · 3 comments
Open

Incompatible with any version of DocumentDB #286

radifalco opened this issue Apr 28, 2023 · 3 comments

Comments

@radifalco
Copy link

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)
}
@IlyaSkriblovsky
Copy link
Contributor

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?

@radifalco
Copy link
Author

@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.

@IlyaSkriblovsky
Copy link
Contributor

IlyaSkriblovsky commented May 6, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants