This Serverless Function has crashed

500: INTERNAL_SERVER_ERROR
Code: FUNCTION_INVOCATION_FAILED
ID: arn1::rb8w7-1721178295884-aa850829411e

I keep getting this error after browsing a little on my deployment. I checked logs and its always some error with socket or handshake, i just dont understand.

Unhandled Rejection: SocketError: other side closed
    at TLSSocket.<anonymous> (node:internal/deps/undici/undici:7614:28)
    at TLSSocket.emit (node:events:531:35)
    at endReadableNT (node:internal/streams/readable:1696:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  code: 'UND_ERR_SOCKET',
  socket: {
    localAddress: '169.254.76.1',
    localPort: 50772,
    remoteAddress: undefined,
    remotePort: undefined,
    remoteFamily: undefined,
    timeout: undefined,
    bytesWritten: 264,
    bytesRead: 0
  }
}
Node.js process exited with exit status: 128. The logs above can help with debugging the issue.
Unhandled Rejection: Error: Opening handshake has timed out
    at ClientRequest.<anonymous> (/var/task/node_modules/ws/lib/websocket.js:872:7)
    at ClientRequest.emit (node:events:519:28)
    at TLSSocket.emitRequestTimeout (node:_http_client:845:9)
    at Object.onceWrapper (node:events:633:28)
    at TLSSocket.emit (node:events:519:28)
    at Socket._onTimeout (node:net:590:8)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)
Node.js process exited with exit status: 128. The logs above can help with debugging the issue.

I have no idea where i’d start to even debug this, im a newbie.

Hi @thatchrisie,

Welcome to the Vercel Community! :raised_hands:

Happy to help out here, but it’d be useful if you could give us more information on your project. Could you tell us more about what you’re building? Or perhaps provide a minimal reproducible example?

Its just a register and login express app. I dont know what this error means and i dont know how you reproduce it thus. It works for 1 minute then it crashes, i dont experience these issues on other hosting platforms.

Hi @thatchrisie!

It’s difficult to help you out here without seeing your full application, but have you had a look at our “Using Express.js with Vercel” guide? That may be helpful!

1 Like

I did, but still problems occur.
https://cz-orcin.vercel.app/
Eventually itll crash

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.