I restarted my laptop and ran npx sst start again....
# help
s
I restarted my laptop and ran npx sst start again. now working fine but I observed one thing. this error was related to time response. if response time is big then it will throw an error otherwise no error. I am showing time responses in images. I got some errors with big-time responses. an an error wthe as same as follows Failed to send response because the Lambda function is disconnected
f
Hey @Sulaiman Baig, you are right. This error happens when the request takes long to run, and the Lambda function timed out.
^ in the newer version of SST, we’ve made the error message more description
Try setting a longer timeout for ur functions will help.
To set runtime for all the functions in ur app, add this in ur
index.js/ts
Copy code
app.setDefaultFunctionProps({
  timeout: 20,
});