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
% s3-credentials list-bucket my-bucket-name -a /tmp/creds.json --prefix some-prefix/
Traceback (most recent call last):
File "/Users/simon/.local/share/virtualenvs/s3-credentials-J8M1ChYK/bin/s3-credentials", line 33, in <module>
sys.exit(load_entry_point('s3-credentials', 'console_scripts', 's3-credentials')())
File "/Users/simon/.local/share/virtualenvs/s3-credentials-J8M1ChYK/lib/python3.10/site-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/Users/simon/.local/share/virtualenvs/s3-credentials-J8M1ChYK/lib/python3.10/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/Users/simon/.local/share/virtualenvs/s3-credentials-J8M1ChYK/lib/python3.10/site-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/simon/.local/share/virtualenvs/s3-credentials-J8M1ChYK/lib/python3.10/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/simon/.local/share/virtualenvs/s3-credentials-J8M1ChYK/lib/python3.10/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/Users/simon/Dropbox/Development/s3-credentials/s3_credentials/cli.py", line 896, in list_bucket
output(
File "/Users/simon/Dropbox/Development/s3-credentials/s3_credentials/cli.py", line 1103, in output
for line in stream_indented_json(iterator):
File "/Users/simon/Dropbox/Development/s3-credentials/s3_credentials/cli.py", line 1112, in stream_indented_json
next(next_iter, None)
File "/Users/simon/Dropbox/Development/s3-credentials/s3_credentials/cli.py", line 1135, in paginate
yield from response[list_key]
KeyError: 'Contents'
This was because there were no files to return. I used the debugger and got this for response:
Just saw this error:
This was because there were no files to return. I used the debugger and got this for
response
:The text was updated successfully, but these errors were encountered: