Since switching to Node.js 22, my hatchet worker is unable to connect to my local hatchet-lite instance.
The same code works on v20.
Error message:
Failed to initialize Hatchet HatchetError: Could not register workflow: /WorkflowService/PutWorkflow INTERNAL: Request message serialization failure: "length" is outside of buffer bounds
at Worker.<anonymous> (node_modules/.pnpm/@hatchet-dev+typescript-sdk@0.10.1/node_modules/@hatchet-dev/typescript-sdk/clients/worker/worker.js:146:23)
at Generator.throw (<anonymous>)
at rejected (node_modules/.pnpm/@hatchet-dev+typescript-sdk@0.10.1/node_modules/@hatchet-dev/typescript-sdk/clients/worker/worker.js:6:65)
Since switching to Node.js 22, my hatchet worker is unable to connect to my local hatchet-lite instance. The same code works on v20.
Error message: