Uploaded image for project: 'Couchbase node.js Client Library'
  1. Couchbase node.js Client Library
  2. JSCBC-1049

mutate subdocument fails even if createPath option is provided

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Blocker
    • None
    • 4.0.0
    • None
    • None
    • 1

    Description

       

      await collection.mutateIn('documentId', [
        couchbase.MutateInSpec.upsert(
          'path.to.sub.property',
          "test",
          {
            createPath: true,
          }
        ),
      ]) 

      getting error:

      PathNotFoundError: path not found    at errorFromCpp (/home/ubuntu/my_project/node_modules/couchbase/dist/bindingutilities.js:508:20)    at /home/ubuntu/my_project/node_modules/couchbase/dist/connection.js:99:71 {  cause: [Error: path_not_found] {    ctxtype: ‘key_value’,    code: 113,    id: {      bucket: ‘my_bucket’,      scope: ‘_default’,      collection: ‘_default’,      key: ‘documentId’    },    opaque: 8382,    cas: Cas<0>,    status_code: 204,    enhanced_error_info: undefined,    last_dispatched_to: ‘10.10.1.150:11210’,    last_dispatched_from: ‘10.10.1.26:57564’,    retry_attempts: 0,    retry_reasons: []  },  context: KeyValueErrorContext {    status_code: 204,    opaque: 8382,    cas: Cas<0>,    key: ‘documentId’,    bucket: ‘my_bucket’,    collection: ‘_default’,    scope: ‘_default’,    context: ‘’,    ref: ‘’  }} 

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              brett19 Brett Lawson
              LOSApevo Luca Losa
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty