swisscomdev - Not autorized to execute any command using Service Connector on MangoDB -
i using mangodb on app , when try access database directly using service connector, able connect getting :
error: error: { "ok" : 0, "errmsg" : "not authorized on admin execute command { *any command*}", "code" : 13 }
and on query or command.
is there way change authorization or accessing data of mangodb
p.s: mangodb bind in tutorial: https://docs.developer.swisscom.com/tutorial-python/bind-service.html
it looks you're trying execute commands on admin database on user not authorized. can find correct database user authorized on in credentials (key mongodb.credentials.database
) ideally connect using provided uri (mongodb.credentials.uri
) connect correct database automatically.
you can have @ python example in tutorial linked find out how access , use credentials correctly.
Comments
Post a Comment