hatchet-dev / hatchet

A distributed, fault-tolerant task queue
https://hatchet.run
MIT License
4.09k stars 148 forks source link

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

Open vavido opened 4 days ago

vavido commented 4 days ago

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)
abelanger5 commented 4 days ago

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