Skip to content

The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Object #80

@HardRock4Life

Description

@HardRock4Life

I'm trying to run a simple query, this is the whole code:

const ClickHouse = require('@apla/clickhouse');
var fs = require('fs');

const ch = new ClickHouse({ host, port, user, password });

const readableStream = ch.query(
    'SELECT 1',
    { syncParser: true,
    dataObjects: true },
    (e, r) => {}
  );

readableStream.pipe(process.stdout);

Currently, I'm running into an error you see in the header:
Unknown error field: TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Object

What could be the problem?

My current NodeJS version is 14.17.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions