Spaces:
Running
Running
Prevent crash from unhandled RangeError in periodic heartbeat
Browse filesThe startup heartbeat recovery catches the stack overflow and logs it.
But the periodic heartbeat (30s) fires the same firstBlockedChainFinding
recursion in an async context with no try/catch β unhandled rejection
β process.exit(1). --unhandled-rejections=none silences these instead
of crashing the process.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
start.sh
CHANGED
|
@@ -214,7 +214,7 @@ trap cleanup SIGTERM SIGINT
|
|
| 214 |
|
| 215 |
# ββ Launch Paperclip ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 216 |
echo "Starting Paperclip..."
|
| 217 |
-
node --import ./server/node_modules/tsx/dist/loader.mjs server/dist/index.js &
|
| 218 |
PAPERCLIP_PID=$!
|
| 219 |
|
| 220 |
# Wait for API ready (max 90s)
|
|
|
|
| 214 |
|
| 215 |
# ββ Launch Paperclip ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 216 |
echo "Starting Paperclip..."
|
| 217 |
+
node --unhandled-rejections=none --import ./server/node_modules/tsx/dist/loader.mjs server/dist/index.js &
|
| 218 |
PAPERCLIP_PID=$!
|
| 219 |
|
| 220 |
# Wait for API ready (max 90s)
|