Hello,
I get this error message:
Error: LCB_ERR_KVENGINE_INVALID_PACKET (1031): A badly formatted packet was sent to the server. Please report this in a bug
Code:
const couchbase = require("couchbase");
const cluster = new couchbase.Cluster("couchbase://localhost", {
username: "Administrator",
password: "password",
});
const bucket = cluster.bucket('wf_db');
const scope = bucket.defaultCollection('data')
router.get('/', async (req, res) => {
const result = await scope.insert('dasdas', {
name: 'hello'
});
console.log(result);
return res.json({
message: 'Hello'
})
});
module.exports = router;
Same hear,
Blockquote
[Error: LCB_ERR_KVENGINE_INVALID_PACKET (1031): A badly formatted packet was sent to the server. Please report this in a bug] {
code: 1031,
ctxtype: ‘kv’,
status_code: 4,
opaque: 0,
cas: CbCas { ‘0’: <Buffer 00 00 00 00 00 00 00 00> },
key: ‘demo::21f3b2a6-3752-4ede-b7f0-af78b3326b5d’,
bucket: ‘demo’,
collection: ‘’, ===> not populate ???
scope: ‘’, ===> not populate ???
context: ‘’,
ref: ‘’
The scope and collection is not populate.
I work with the Couchbase server 7.0 beta and Sdk Nodejs 3.2.0-beta, 3.1.3, 3.1.2 all is in error.
The version 3.1.1 is the only who is working.
ya same here node -v 16.5, couchbase 7, sdk 3.2. queries work fine in n1ql format, just none of the methods work.
Hey Everyone,
Due to a necessary late-breaking protocol change related to the use of collections, there’s a slight incompatibility between the current SDK release and the existing 7.0 beta’s when using non-default collections. It’s recommended to either downgrade to the release compatible with the 7.0 Beta, or alternatively the next available build of Couchbase Server 7.0 should resolve this issue as well.
See the version details here:
Cheers, Brett
1 Like