I’m setting up GridDB using Docker and integrating it with a Go client using the official repository and documentation. However, I’m encountering an issue with the PutContainer
method. Here’s a simplified version of my code:
code:
for containerName := range fullDataset {
fmt.Println("containerName: ", containerName)
conInfo, err := griddb_go.CreateContainerInfo(map[string]interface{}{
"name": containerName,
"column_info_list": [][]interface{}{
{"timestamp", griddb_go.TYPE_TIMESTAMP},
{"id", griddb_go.TYPE_SHORT},
{"data", griddb_go.TYPE_FLOAT},
{"temperature", griddb_go.TYPE_FLOAT}},
"type": griddb_go.CONTAINER_TIME_SERIES,
"row_key": true})
if err != nil {
fmt.Println("ERROR CreateContainerInfo")
}
defer griddb_go.DeleteContainerInfo(conInfo)
_, err = gridstore.PutContainer(conInfo)
if err != nil {
fmt.Println("ERROR PutContainer, ", err)
}
}
When I run this code, I get the following error:
containerName: test_sensor_1
ERROR PutContainer, Error with number 140029
I’m not sure what this error means or how to resolve it. Any help would be appreciated. Thank you!