-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
Description
Description
If I create a client with the following:
this.client = createClient({
url: this.url,
})
.withTypeMapping({
[RESP_TYPES.BLOB_STRING]: Buffer
});
And execute a command:
await this.client.sendCommand(['MYCOMMAND']);
The provided type mappings aren't being respected.
If I put a log under the opts here:
node-redis/packages/client/lib/client/index.ts
Lines 918 to 921 in 746e9b1
const opts = { | |
...this._self._commandOptions, | |
...options | |
} |
I see the options are {}
, despite assigning type mappings. One hotfix was to change ...this._self._commandOptions,
to ...this._commandOptions,
.
This has drained a lot of hours due to my returned data not being interpreted as binary correctly.
Node.js Version
v22.17.0
Redis Server Version
Using a custom database
Node Redis Version
Platform
Linux