The problem was resolved when readWrite role added to the user with database access. Is it because of POST requests?