Node.js v11+ fails to execute N1QL queries

Description

When attempting to perform a N1QL query using Node.js v11+, the server responds with Bad Request, in spite of the fact that this works fine with v10-.

Environment

None

Gerrit Reviews

None

Release Notes Description

None

Activity

Show:

CB robot November 5, 2018 at 11:00 PM

Build couchnode-2.4.4-120 contains couchnode commit 8fdbde2 with commit message:
https://couchbasecloud.atlassian.net/browse/JSCBC-515#icft=JSCBC-515: Fix special characters in versions corrupting requests.

Brett Lawson November 3, 2018 at 12:43 AM

Looks like this is caused by Node.js v11 being built with an OpenSSL version identifier containing special characters.  This causes an error in the libcouchbase's generation of the user-agent string header, which then proceeds to corrupt the request being sent to the server.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Assignee

Brett Lawson

Reporter

Story Points

Components

Fix versions

Affects versions

Priority

Instabug

Open Instabug
Created November 3, 2018 at 12:42 AM
Updated April 24, 2020 at 8:53 PM
Resolved November 5, 2018 at 9:28 PM
Instabug