You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying to run on a custom port with --httpPort 5000, the listener starts normally but it seems the port is already used elsewhere without causing a conflict (see screenshot below).
Sample Code
This shouldn't be relevant in this situation, but here it is in case.
I don't believe this can be fixed on our end. node.js itself is throwing an error if the port is already in use, unless we are catching it and ignoring it, but I don't think that's what we are doing, just checked the code.
I also tried to start serverless-offline twice with the same port, and an error is being thrown.
✖ Unexpected error while starting serverless-offline server on port 6000: { Error: listen EADDRINUSE: address already in use ::1:6000
unfortunately I have no idea what would cause such an issue, but I believe it has something to do with your OS and the settings.
Bug Report
Current Behavior
While trying to run on a custom port with
--httpPort 5000
, the listener starts normally but it seems the port is already used elsewhere without causing a conflict (see screenshot below).Sample Code
This shouldn't be relevant in this situation, but here it is in case.
Expected behavior/code
It should just return a 200 Hello, world!
Environment
serverless
version:serverless-esbuild
version: "1.23.3",serverless-offline
version: "8.5.0",node.js
version: "v16.13.0"OS
: macOS 12.2.1Additional context/Screenshots
Start command:
See the response
Server
header:The text was updated successfully, but these errors were encountered: