aws / aws/aws-cli

aws: [ERROR]: argument of type 'NoneType' is not a container or iterable

Open
#10,161 10 comments 1 reaction 1 assignee Claimed by @RyanFitzSimmonsAK View on GitHub
bug p2 s3
Dominant language
Python
Stars
17.3k
Forks
4.6k
Avg merge
1d 2h
Merged PRs (30d)
13

Description

### Describe the bug

I am trying to use `aws` against Hetzner S3

`aws --profile=hetz-fsn1 s3 ls` works fine, it lists all buckets.

but then

`aws --profile=hetz-fsn1 s3 ls s3://my-bucket-name` returns:

> aws: [ERROR]: argument of type 'NoneType' is not a container or iterable

### Regression Issue

- [ ] Select this option if this issue appears to be a regression.

### Expected Behavior

List contents of buckets

### Current Behavior

Errors out with " aws: [ERROR]: argument of type 'NoneType' is not a container or iterable"

### Reproduction Steps

1. Create bucket on Hetzner
2. Try `aws --profile=hetz-fsn1 s3 ls`, note bucket is listed
3. Try ``aws --profile=hetz-fsn1 s3 ls s3://bucket-name`, note error

### Possible Solution

_No response_

### Additional Information/Context

_No response_

### CLI version used

aws-cli/2.34.16 Python/3.14.3 Darwin/25.4.0 exe/arm64

### Environment details (OS name and version, etc.)

macOS 26.4

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.