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

Cannot connect to MongoDB Atlas M0 sandbox

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Atlas:M0 Sandbox, ver 4.0.10
      OS: Ubuntu 18.04 on AWS EC2
      Golang: 1.12.7
      DNS server:8.8.8.8

    Description

      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)
      }

      Attachments

        Activity

          People

            manny.eppinger@mongodb.com Emmanuel Eppinger (Inactive)
            junbaih@gmail.com Junbai Hou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: