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
Frank
03/10/2022, 6:43 AM
Hey @Sulaiman Baig, you are right. This error happens when the request takes long to run, and the Lambda function timed out.
Frank
03/10/2022, 6:44 AM
^ in the newer version of SST, we’ve made the error message more description
Frank
03/10/2022, 6:44 AM
Try setting a longer timeout for ur functions will help.
Frank
03/10/2022, 6:45 AM
To set runtime for all the functions in ur app, add this in ur