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

couchnode SyntaxError: Unexpected token }

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.5
    • 2.1.6
    • library
    • None

    Description

      From QE dashboard (greenboard)
      Queries sometimes fail with syntax error in bucket.js. The dashboard is sending same query that usually returns results - but occasionally fails. This causes a problem where ui restarts and all caching has to be recreated

      Fri Apr 22 2016 12:47:06 GMT-0700 (PDT) 'QUERY:' 'SELECT * FROM server WHERE `build` LIKE \'4.5.0%\''
      Fri Apr 22 2016 12:47:45 GMT-0700 (PDT) 'QUERY:' 'SELECT DISTINCT SPLIT(`build`,\'-\')[0] AS version FROM server ORDER BY version'
      Fri Apr 22 2016 12:47:46 GMT-0700 (PDT) 'QUERY:' 'SELECT * FROM server WHERE `build` LIKE \'4.5.0%\''
      Fri Apr 22 2016 12:47:46 GMT-0700 (PDT) 'QUERY:' 'SELECT * FROM server WHERE `build` LIKE \'4.5.0%\''
      undefined:1
      },
      ^
      SyntaxError: Unexpected token }
      at Object.parse (native)
      at /usr/lib/node_modules/couchbase/lib/bucket.js:652:28

      Attachments

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

        Activity

          I have added better error handling to this situation.

          brett19 Brett Lawson added a comment - I have added better error handling to this situation.

          People

            brett19 Brett Lawson
            tommie Tommie McAfee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty