I’m using ElysiaJS and I have an enfpoint that works locally but not on vercel.
On vercel I’m getting the following error in logs:
[error] Error running the exported Web Handler: RangeError: init["status"] must be in the range of 200 to 599, inclusive.
at initializeResponse (node:internal/deps/undici/undici:9346:15)
at new Response (node:internal/deps/undici/undici:9138:9)
at eval (eval at composeErrorHandler (file:///var/task/index.js:550:131), <anonymous>:22:54)
at handle (eval at composeHandler (file:///var/task/index.js:463:52), <anonymous>:18:8)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)