You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
eg, capture SIGINT, SIGTERM and then process.exit once you've gracefully shut down, generation will fail with:
[ ] Received Ctrl+C, closing process...SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /Users/Karl.Stoney/.nvm/versions/node/v18.16.1/lib/node_modules/clinic/node_modules/@clinic/heap-profiler/src/analysis/index.js:126:50
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)
Changing that to setTimeout(() => { process.exit(0), 2500 }) for example; "fixes" it, giving the report time to finish.
If you do this:
eg, capture
SIGINT
,SIGTERM
and thenprocess.exit
once you've gracefully shut down, generation will fail with:Changing that to
setTimeout(() => { process.exit(0), 2500 })
for example; "fixes" it, giving the report time to finish.This is quite a common pattern in all the apps i work on, and in very common frameworks like
nextjs
; https://github.com/vercel/next.js/blob/b3ad907d2bbe5f16988565ca6e99d434084bded0/packages/next/src/server/lib/start-server.ts#L285The text was updated successfully, but these errors were encountered: