Skip to main content

RxDB Error Messages

When RxDB has an error, an RxError object is thrown instead of a normal JavaScript Error. This RxError contains additional properties such as a code field and parameters. By default the full human readable error messages are not included into the RxDB build. This is because error messages have a high entropy and cannot be compressed well. Therefore only an error message with the correct error-code and parameters is thrown but without the full text. When you enable the DevMode Plugin the full error messages are added to the RxError. This should only be done in development, not in production builds to keep a small build size.

All RxDB error messages

util.js / config

plugins

pouch-db.js

  • #P2

    BulkWrite() cannot be called with an empty array
    Cause:
    bulkWrite was called with an empty array of documents.
    Fix:
    Ensure the array passed to bulkWrite is not empty.

rx-query

mquery.js

rx-database

rx-collection

plugins/webmcp

  • #WMCP1

    WebMCP Agent attempted to delete a document that does not exist
    Cause:
    The explicitly requested ID for deletion could not be found in the database.
    Fix:
    Ensure the agent queries for the document correctly before trying to delete it.

rx-document.js

data-migrator.js

plugins/attachments

plugins/encryption-crypto-js

plugins/json-dump

plugins/local-documents

plugins/replication

plugins/dev-mode/check-schema

plugins/dev-mode

plugins/validate

plugins/server

plugins/replication-graphql

plugins/crdt

plugins/storage-dexie

plugins/storage-sqlite-trial

plugins/storage-remote

plugins/replication-mongodb

plugins/react

plugins/replication-google-drive

plugins/replication-microsoft-onedrive

fetch

Other

  • #CI1

    Field not in schema
    Cause:
    The given field is not defined in the RxJsonSchema.
    Fix:
    Make sure the field name is spelled correctly and exists in the schema.
  • #CI2

    Unknown index type
    Cause:
    The schema field type is not supported for indexing.
    Fix:
    Use a supported type (string, boolean, number, integer) for the indexed field.
  • #COB1

    ChangeEventBuffer out of bounds
    Cause:
    The requested pointer is out of the change event buffer bounds.
    Fix:
    This means something in RxDB itself behaves wrong because any access to the api should not make an out of bounds request.

other