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

Getting Internal Server Error with latest of boto #8247

Open
heldersepu opened this issue Oct 21, 2024 · 1 comment
Open

Getting Internal Server Error with latest of boto #8247

heldersepu opened this issue Oct 21, 2024 · 1 comment

Comments

@heldersepu
Copy link

heldersepu commented Oct 21, 2024

how to reproduce the issue

import boto3
from moto import mock_aws


class Test_CUSTOM_ENABLE_S3_POLICY:
    @mock_aws
    def test_success2(self):
        client = boto3.client("s3", region_name="us-east-1")
        client.create_bucket(Bucket="test")
        client.put_bucket_policy(Bucket="test", Policy='{}')
        assert 1 == 1

happens with latest, if I hard code to older it works:

pytest
boto3 == 1.35.37
botocore == 1.35.37
moto >= 5.0.16.dev5

what actually happens

the test takes a lot longer as it is reaching to AWS

E botocore.exceptions.ClientError: An error occurred (500) when calling the PutBucketPolicy operation (reached max retries: 4): Internal Server Error

version of Moto

Name: moto
Version: 5.0.18

and
Successfully installed boto3-1.35.45 botocore-1.35.45

@bpandola
Copy link
Collaborator

I think this may be an issue with the latest version of botocore (see boto/botocore#3284).

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

No branches or pull requests

2 participants