Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new release from master due to str errors in get_credentials() method #67

Open
andrejskuidins opened this issue Oct 4, 2024 · 1 comment

Comments

@andrejskuidins
Copy link

I have an issue in Ubuntu with:

        if data.get("AccessKeyId") is None:
            self.__get_role()
            data = self.__request_json(urllib.parse.urljoin(self.credentials_metadata,
                                                            str(self.iamrole, 'utf-8')))

Following command:

root@ip-10-200-197-172:~# apt update
Traceback (most recent call last):
  File "/usr/lib/apt/methods/s3", line 639, in <module>
    method = S3_method(config)
  File "/usr/lib/apt/methods/s3", line 426, in __init__
    self.iam.get_credentials()
  File "/usr/lib/apt/methods/s3", line 234, in get_credentials
    str(self.iamrole, 'utf-8')))
TypeError: decoding str is not supported
Reading package lists... Done
E: Method s3 has died unexpectedly!
E: Sub-process s3 returned an error code (1)
E: Method /usr/lib/apt/methods/s3 did not start correctly
E: Failed to fetch s3://kube-majik-venus-dev-packages-ubuntu-20-repo/dists/stable/InRelease
E: Some index files failed to download. They have been ignored, or old ones used instead.

I need this fix in 2.2.0:
https://github.com/MayaraCloud/apt-transport-s3/blame/development/s3#L262-L264

@msdrigg
Copy link

msdrigg commented Oct 11, 2024

I'd also love to see this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants