I tested every endpoint in debug mode by running command npx sst start. It was ok. Then I tried to deploy and ran this command npx sst deploy --stage prod. I got an internal server error in postman response when I hit prod endpoints. After that I again ran npx sst start to test what is going wrong then I got this message in console
cf943986-7019-494c-b35d-ffb1d57ee0a0 RESPONSE {"statusCode":200,"headers":{"Content-Type":"application/json"},"body":"{\"data\":{\"_id\":\"86b5b4f8-78fb-4a0d-b753-51d4e4e59c10\",\"email\":\"email\",\"username\":\"username\",\"address... 552 more characters"}
cf943986-7019-494c-b35d-ffb1d57ee0a0-1646835997352
Failed to send response because the Lambda function is disconnected
Please guide me what I am doing wrong?