Closed dpancu closed 2 months ago
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Description:
When running the command sam local start-api -t template.yaml -d 5858 on macOS Sonoma 14.5, an error occurs indicating that the port 5858 is already allocated, despite verifying that the port is not in use. The API starts and works correctly when the -d 5858 option is omitted.
Steps to reproduce:
Observed result:
driver failed programming external connectivity on endpoint nostalgic_poincare (c075a12c9021eda5a9113d79125cbead2fa45163ea3d5578294f90edcd504112): Bind for 127.0.0.1:5858 failed: port is already allocated
Expected result:
The API should start without any port allocation issues when the -d 5858 option is used.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
:Add --debug flag to command you are running