-
Notifications
You must be signed in to change notification settings - Fork 94
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
Not authorized on database
to execute command ...
#69
Comments
Do you have a bit more details about your connection string ? I tried to reproduce in a test but it seemed to work. async def test_custom_motor_database(motor_client):
engine = AIOEngine(motor_client, database="forest")
class Tree(Model):
f: str
await engine.save(Tree(f="aaa")) |
I use cloud-hosted Replica set with mongodb.com (on AWS servers). My connection string looks like: Could you try to reproduce the issue with |
The issue is actually linked to the user role you are using @Olegt0rr (I'm facing the same one with the From mongodb's documentation about bypassing the document validation:
@art049 any reason to bypass the document validation? |
@gusmith, thanks for an answer! In my opinion, @art049, |
Desctription
Seems that inserting via engine requires some additional permissions.
Please describe it in the docs or (better) decrease permissions level similar to the motor way.
My code
Expected behavior
Bot functions works the same way
In fact
Saving via
engine
occurs exception:The text was updated successfully, but these errors were encountered: