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

exception thrown by transcoder.encode not bubbled up, instead see 'Error: bad value passed'; error thrown by transcoder.decode causes vm to exit

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 3.0.7
    • None
    • library
    • None
    • 1

    Description

      encode is going to throw

      Error: encode - InvalidArgumentException

          at RawStringTranscoder.encode (/Users/michaelreiche/g2/docs-sdk-nodejs/modules/devguide/examples/nodejs/rawstringtranscoder.js:56:19)

          at CbConnection.<anonymous> (/Users/michaelreiche/g2/docs-sdk-nodejs/modules/devguide/examples/nodejs/node_modules/couchbase/lib/connection.js:202:50)

          at Connection._maybeBFwd (/Users/michaelreiche/g2/docs-sdk-nodejs/modules/devguide/examples/nodejs/node_modules/couchbase/lib/connection.js:172:10)

          at Connection.store (/Users/michaelreiche/g2/docs-sdk-nodejs/modules/devguide/examples/nodejs/node_modules/couchbase/lib/connection.js:202:10)

          at /Users/michaelreiche/g2/docs-sdk-nodejs/modules/devguide/examples/nodejs/node_modules/couchbase/lib/collection.js:391:18

          at /Users/michaelreiche/g2/docs-sdk-nodejs/modules/devguide/examples/nodejs/node_modules/couchbase/lib/promisehelper.js:27:7

          at new Promise (<anonymous>)

          at Function.wrap (/Users/michaelreiche/g2/docs-sdk-nodejs/modules/devguide/examples/nodejs/node_modules/couchbase/lib/promisehelper.js:26:12)

          at Collection._store (/Users/michaelreiche/g2/docs-sdk-nodejs/modules/devguide/examples/nodejs/node_modules/couchbase/lib/collection.js:390:26)

          at Collection.upsert (/Users/michaelreiche/g2/docs-sdk-nodejs/modules/devguide/examples/nodejs/node_modules/couchbase/lib/collection.js:451:17)

      caught exception from upsert:

      Error: bad value passed

          at CbConnection.<anonymous> (/Users/michaelreiche/g2/docs-sdk-nodejs/modules/devguide/examples/nodejs/node_modules/couchbase/lib/connection.js:202:50)

          at Connection._maybeBFwd (/Users/michaelreiche/g2/docs-sdk-nodejs/modules/devguide/examples/nodejs/node_modules/couchbase/lib/connection.js:172:10)

          at Connection.store (/Users/michaelreiche/g2/docs-sdk-nodejs/modules/devguide/examples/nodejs/node_modules/couchbase/lib/connection.js:202:10)

          at /Users/michaelreiche/g2/docs-sdk-nodejs/modules/devguide/examples/nodejs/node_modules/couchbase/lib/collection.js:391:18

          at /Users/michaelreiche/g2/docs-sdk-nodejs/modules/devguide/examples/nodejs/node_modules/couchbase/lib/promisehelper.js:27:7

          at new Promise (<anonymous>)

          at Function.wrap (/Users/michaelreiche/g2/docs-sdk-nodejs/modules/devguide/examples/nodejs/node_modules/couchbase/lib/promisehelper.js:26:12)

          at Collection._store (/Users/michaelreiche/g2/docs-sdk-nodejs/modules/devguide/examples/nodejs/node_modules/couchbase/lib/collection.js:390:26)

          at Collection.upsert (/Users/michaelreiche/g2/docs-sdk-nodejs/modules/devguide/examples/nodejs/node_modules/couchbase/lib/collection.js:451:17)

          at customtranscoder_stringHandler (/Users/michaelreiche/g2/docs-sdk-nodejs/modules/devguide/examples/nodejs/kv-operations.js:568:39)

      {   code: 100 }

      undefined

      ...called upsert

      Attachments

        Activity

          People

            brett19 Brett Lawson
            michael.reiche Michael Reiche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty