Upsert - Invalid Arguments

Hi everyone,

I’m trying to replace the contents of a document providing a given id. Below is my code:

cas, err := cb.deploymentsDB.Upsert(id, deployment, 0)
if err != nil {
    log.Println(err)
	return err
}

For some reason, I’m getting an “invalid arguments” error when calling this function. ID is a uuid, deployment is the value to upsert, and the last parameter is an expiration value of 0.

couchbase_deployments.go:73: invalid arguments

Any ideas what could be going wrong?

Hey @Cory,

Could you log and share the values of id and deployment? Additionally it would be helpful to know what version of the Go SDK and Couchbase Server you are using.

Cheers, Brett