Serverless Framework and Serverless Offline Error: POST Request Not Responding

May 14, 2021 min read

I recently upgraded my development workflow for serverless functions to include using a Docker container that hosts the Serverless Framework CLI. I didn’t pay much attention to versions when I built the Dockerfile and selected the latest NodeJS base image, which is NodeJS version 16. When I began testing a new POST HTTP endpoint I would never receive a response, just waiting and waiting.

After much debugging and a successful search I found that there is a known issue with the Serverless Framework and the Serverless-Offline plugin when hosted on a NodeJS version 15.4X or higher. POST requests will fail to respond or resolve.

The Fix: Downgrade NodeJS version, NodeJS 14.X upto 15.14 has been successfully tested.