MongoServerError: not authorized on test to execute command { createIndexes:

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 4.2.0
    • Component/s: None
    • 0
    • None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      What problem are you facing?

       

      Unable to connect with the error:

      > MongoServerError: not authorized on test to execute command { createIndexes: 

      What driver and relevant dependency versions are you using?

       

      4.2.0

      Steps to reproduce?

       

      Connect with connection string included auth mongodb://user:pass@server:27017/data?authSource=admin

       

      Module version 4.1.3 works without any problem

              Assignee:
              Unassigned
              Reporter:
              Evgeny Vlasenko
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: