Conversation
83b0774 to
50683e7
Compare
|
Using [nix-shell:~/.cache/nixpkgs-review/pr-393133]$ librechat-server --help
node:buffer:325
throw new ERR_INVALID_ARG_TYPE(
^
TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
at Function.from (node:buffer:325:9)
at Object.<anonymous> (/nix/store/kg80fjmwpjyasjzfi3mflp5hhpj040w5-librechat-0.7.7/lib/node_modules/LibreChat/api/server/utils/crypto.js:4:20)
at Module._compile (node:internal/modules/cjs/loader:1554:14)
at Object..js (node:internal/modules/cjs/loader:1706:10)
at Module.load (node:internal/modules/cjs/loader:1289:32)
at Function._load (node:internal/modules/cjs/loader:1108:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
at Module.require (node:internal/modules/cjs/loader:1311:12)
at require (node:internal/modules/helpers:136:16) {
code: 'ERR_INVALID_ARG_TYPE'
}
Node.js v22.14.0 |
|
Interesting, we've been running it in Node 20 so far so I wonder if that is indeed Node 22 related. I'll investigate |
|
@markus1189 this actually works as intended, the error you are experiencing is documented here:
Also, the server does not have a |
|
@niklaskorz thanks for figuring that out :) I used https://www.librechat.ai/toolkit/creds_generator to generate secrets and set them as environment variables. With that, I managed to get it running locally until the login mask. LGTM |
74k1
left a comment
There was a problem hiding this comment.
I was able to build it as well. Looking forward for the Module! ❤️
|
Blocked by #398583 |
50683e7 to
10e177f
Compare
|
10e177f to
c41f259
Compare
|
|
GaetanLepage
left a comment
There was a problem hiding this comment.
Diff LGTM. Failures are unrelated.
Implements the package part of #352044. The NixOS module will follow in a separate PR for easier review and to get the package in faster, as module reviews usually are more involved than package reviews.
This package has been in use for about five months, so it's been fairly well tested.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.