Skip to content

Wrong Error Code? #7

Description

@Imisrael

I upgraded from the older nodejs client and now my ingest is broken. I am creating the schema but am getting the following error:

$ docker run --network host --name ingest ingest:latest

/app/ingest.js:14
const conInfo = new griddb.ContainerInfo({
                ^
GSException {
  mCode: -1,
  mMessage: 'Expected 1st element of ColumnInfo property is string',
  mLocation: '',
  mStackSize: 1
}

It's definitely mis-attributed because my ingest code is fine:


var containerName = "Cereal"
```javascript
var conInfo = new griddb.ContainerInfo({
          'name': containerName ,
          'columnInfoList': [
                        ["name", griddb.GS_TYPE_STRING],
                        ["mfr", griddb.GS_TYPE_STRING],
                        ["type", griddb.GS_TYPE_STRING],
                        ["calories", griddb.GS_TYPE_INTEGER],
                        ["protein", griddb.GS_TYPE_INTEGER],
                        ["fat", griddb.GS_TYPE_INTEGER],
                        ["sodium", griddb.GS_TYPE_INTEGER],
                        ["fiber", griddb.GS_TYPE_FLOAT],
                        ["carbo", griddb.GS_TYPE_FLOAT],
                        ["sugars", griddb.GS_TYPE_INTEGER],
                        ["potass", griddb.GS_TYPE_INTEGER],
                        ["vitamins", griddb.GS_TYPE_INTEGER],
                        ["shelf", griddb.GS_TYPE_INTEGER],
                        ["weight", griddb.GS_TYPE_FLOAT],
                        ["cups", griddb.GS_TYPE_FLOAT],
                        ["rating", griddb.GS_TYPE_FLOAT]
            ],
     'type': griddb.ContainerType.COLLECTION,
    'rowKey': false
});

As you can see, I definitely have a string where the errors says I don't

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions