You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\Users\lutsky\Documents\projects\tests\redis-stack\node_modules\@redis\client\dist\lib\client\RESP2\encoder.js:17
throw new TypeError('Invalid argument type');
^
TypeError: Invalid argument type
at encodeCommand (C:\Users\lutsky\Documents\projects\tests\redis-stack\node_modules\@redis\client\dist\lib\client\RESP2\encoder.js:17:19)
at RedisCommandsQueue.getCommandToSend (C:\Users\lutsky\Documents\projects\tests\redis-stack\node_modules\@redis\client\dist\lib\client\commands-queue.js:138:45)
at Commander._RedisClient_tick (C:\Users\lutsky\Documents\projects\tests\redis-stack\node_modules\@redis\client\dist\lib\client\index.js:515:76)
at Commander._RedisClient_sendCommand (C:\Users\lutsky\Documents\projects\tests\redis-stack\node_modules\@redis\client\dist\lib\client\index.js:502:82)
at Commander.commandsExecutor (C:\Users\lutsky\Documents\projects\tests\redis-stack\node_modules\@redis\client\dist\lib\client\index.js:188:154)
at Object.Commander.<computed>.<computed> [as create] (C:\Users\lutsky\Documents\projects\tests\redis-stack\node_modules\@redis\client\dist\lib\commander.js:58:33)
at createSchema (C:\Users\lutsky\Documents\projects\tests\redis-stack\src\index.ts:37:19)
at C:\Users\lutsky\Documents\projects\tests\redis-stack\src\index.ts:16:11
at Layer.handle [as handle_request] (C:\Users\lutsky\Documents\projects\tests\redis-stack\node_modules\express\lib\router\layer.js:95:5)
at next (C:\Users\lutsky\Documents\projects\tests\redis-stack\node_modules\express\lib\router\route.js:144:13)
Argument of type '["questions", { "$.question": { type: SchemaFieldTypes; }; "$.embedding": { type: SchemaFieldTypes; DIM: number; ALGORITHM: VectorAlgorithms; DISTANCE_METRIC: string; }; }, { ...; }]' is not assignable to parameter of type '[index: string, schema: RediSearchSchema, options?: CreateOptions | undefined] | [options: CommandOptions<ClientCommandOptions>, index: string, schema: RediSearchSchema, options?: CreateOptions | undefined]'.
Type '["questions", { "$.question": { type: SchemaFieldTypes; }; "$.embedding": { type: SchemaFieldTypes; DIM: number; ALGORITHM: VectorAlgorithms; DISTANCE_METRIC: string; }; }, { ...; }]' is not assignable to type '[options: CommandOptions<ClientCommandOptions>, index: string, schema: RediSearchSchema, options?: CreateOptions | undefined]'.
Type at position 0 in source is not compatible with type at position 0 in target.
Type 'string' is not assignable to type 'CommandOptions<ClientCommandOptions>'.
Type 'string' is not assignable to type '{ readonly [symbol]: true; }'.ts(2345)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
What is Im doing wrong?
redis: 4.6.7
Beta Was this translation helpful? Give feedback.
All reactions