Cannot connect to MongoDB Atlas M0 sandbox

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      Atlas:M0 Sandbox, ver 4.0.10
      OS: Ubuntu 18.04 on AWS EC2
      Golang: 1.12.7
      DNS server:8.8.8.8
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The code snippet below didn't work

      ClientOpt := options.Client().ApplyURI("some address")
      Client,err := mongo.Connect(context.TODO(),ClientOpt)
      if err!=nil {
          panic(err)
      }
      collection:=Client.Database("something").Collection("another")
      Obj1 := SomeObj{}
      res,error:=collection.InsertOne(context.TODO(),Obj1)
      if error!=nil {
          panic(error)
      }

            Assignee:
            Emmanuel Eppinger (Inactive)
            Reporter:
            Junbai Hou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: