Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1311

Running v1.1.0+ against mongot doesn't work

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.2
    • Affects Version/s: None
    • Component/s: Connections
    • Labels:
      None

      v1.0.1 works fine.

      Repro env:
      1. mongod v4.2.0
      2. mongot_0.1.4.319
      3. macos 10.14.6
      4. go version go1.11.6

      When running the following code:

      client, err := mongo.NewClient(options.Client().ApplyURI("mongodb://__system:p@localhost:27037/?authSource=local"))
          fmt.Println("1", err, version.Driver)
          if err != nil {
              panic(err)
          }
          ctx, _ := context.WithTimeout(context.Background(), 10*time.Second)
          err = client.Connect(ctx)
          fmt.Println("2", err)
          if err != nil {
              panic(err)
          }
          err = client.Ping(ctx, nil)
          fmt.Println("3", err)
          if err != nil {
              panic(err)
          }
          return client, err
      

      it returns:

      1 <nil> v1.1.1
      2 <nil>
      panic: connection() : auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": do not know how to handle OP_QUERY for non-commands
      

            Assignee:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Reporter:
            tomer.yakir@mongodb.com Tomer Yakir
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: