hatchet icon indicating copy to clipboard operation
hatchet copied to clipboard

[Bug] Request message serialization failure on Node.js v22

Open vavido opened this issue 1 year ago • 1 comments

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/@[email protected]/node_modules/@hatchet-dev/typescript-sdk/clients/worker/worker.js:146:23)
     at Generator.throw (<anonymous>)
     at rejected (node_modules/.pnpm/@[email protected]/node_modules/@hatchet-dev/typescript-sdk/clients/worker/worker.js:6:65)

vavido avatar Sep 26 '24 15:09 vavido

Hi @vavido, we'll be working on tackling compatibility issues on the Typescript SDK next week. Thanks for flagging this!

abelanger5 avatar Sep 26 '24 21:09 abelanger5