Closed jbrinkman closed 3 days ago
This may not be a bug at all, and is likely the result of testing against a server that doesn't support JSON commands. Using redis-stack docker image does not result in an error.
@ikolomi @avifenesh Please confirm.
There's still an issue, that the GlideJson and GlideFt classes (and options) are not being included in the @valkey-glide/valkey-glide package.
Also, note that the arch variant (which is available) DOES have the server-modules packages (I guess that's a very poor workaround).
// not available:
import {GlideJson} from "@valkey/valkey-glide";
// available:
import { GlideJson } from "@valkey/valkey-glide-darwin-arm64";
@jbrinkman Good catch! thanks!
Describe the bug
The Valkey-Glide 1.2.0-rc16 package is missing the server-modules folder. As a result, the FT and JSON module commands result in an error when trying to call those commands.
Expected Behavior
The code should run without errors and add the
jsonObj
to the root of thejfoo
key.Current Behavior
The following error is thrown when the code is executed against the 1.2.0-rc16 package.
logger_core: received error - An error was signalled by the server - ResponseError: unknown command 'JSON.SET', with args beginning with: 'jfoo' '$' '{"a":1,"b":2,"c":"three"}'
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
Client version used
@valkey/valkey-glide@1.2.0-rc16
Engine type and version
Valkey 8
OS
MacOS 14
Language
TypeScript
Language Version
Using Vanilla JS not TypeScript
Cluster information
No response
Logs
No response
Other information
No response