Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
Description
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
|