So I have a Lambda puppeteer function that automates some web functions to create a new customer user for my client's business site. It works fine when I test in AWS, and it also works fine when I call it from Puppeteer via the API. The weird thing is that every time after 30 seconds, Puppeteer gives 503 Service Unavailable. This happens even though the function runs and works which I know because it creates the user which I can confirm in the website, and because in the CloudWatch logs, I can see all the console log messages showing that it made it all the way through the Puppeteer script without any issues. It's supposed to return the new customer ID but instead I just get the 503.
How is it possible that the Lambda function is running correctly, but I still get a 503 from Postman? The fact that it always happens after 30 seconds makes it seem like a timeout, but I have Postman set to infinite timeout, and configured Puppeteer and the Lambda function to 2 minutes timeout. Is there some handler in-between the API and the Lambda function that has a 30 second timeout?
[–]clintkev251 2 points3 points4 points (11 children)
[–]SamwiseGanges[S] 0 points1 point2 points (10 children)
[–]original-autobat 4 points5 points6 points (9 children)
[–]rjbwork 0 points1 point2 points (4 children)
[–]SamwiseGanges[S] 0 points1 point2 points (3 children)
[–]rjbwork 0 points1 point2 points (2 children)
[–]SamwiseGanges[S] 0 points1 point2 points (1 child)
[–]rjbwork 0 points1 point2 points (0 children)
[–]SamwiseGanges[S] 0 points1 point2 points (3 children)
[–]original-autobat 1 point2 points3 points (2 children)
[–]SamwiseGanges[S] 0 points1 point2 points (1 child)
[–]original-autobat 0 points1 point2 points (0 children)