Posts List

AWS Lambda Error: connect ENOENT /tmp/server-*.sock with nodejs lambda angular ssr

Background We have a SSR Angular application hosted on AWS. The Lambda function renders the requested page in front of an Api Gateway. We use serverless and an nodejs express server to render the requested page or resource. This error kept showing up when accessing our lambda serverless angular build from multiple regions simultaneously: { Error: connect ENOENT /tmp/server-q2r7kv33bik.sock at Object._errnoException (util.js:1022:11) at _exceptionWithHostPort (util.js:1044:20) at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1198:14) code: 'ENOENT', errno: 'ENOENT', syscall: 'connect', address: '/tmp/server-q2r7kv33bik.