Skip to content

Getting error: Failed to execute 'only' on 'IDBKeyRange': The parameter is not a valid key. #395

@SpicyCatGames

Description

@SpicyCatGames

Title

Getting error: (message: "Failed to execute 'only' on 'IDBKeyRange': The parameter is not a valid key.", type: 'DataError')

Description

If I run the following query (this is after I call JSON.stringify() on the object):

{
  "from": "data",
  "skip": 0,
  "limit": 200,
  "order": {
    "by": "INDEX_NUM",
    "type": "asc"
  },
  "where": {
    "Field3": {
      "!=": "1.0"
    },
    "or": {
      "Field7": {
        "!=": "1.0"
      },
      "or": {
        "Field11": {
          "!=": "1.0"
        }
      }
    }
  }
}

I get this error:

(message: "Failed to execute 'only' on 'IDBKeyRange': The parameter is not a valid key.", type: 'DataError')

Don't mind the double quotes around the names. That's just the result of JSON.stringify().

Any help would be appreciated. Thanks!

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions