Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#7244·aws-sam-cli

`'str' object has no attribute 'decode'` when `PortAlreadyInUse` error is raised.

Author: DiscreteTomCreated Jul 12, 2024Updated Sep 3, 2026
Labelsarea/dockertype/bugmaintainer/need-responsearea/local

https://github.com/aws/aws-sam-cli/blob/5570367805bc94e43755e31a493b7cb93677dde3/samcli/local/docker/container.py#L392

Remove .decode() to resolve this issue.

Source: aws/aws-sam-cli

View original on GitHubView discussion on GitHub