Skip to content

Error with new aws/aws-sdk-php #44977

@labomatik

Description

@labomatik
  • Laravel Version: 9.40.1
  • PHP Version: 8.1.5
  • Database Driver & Version: Mysql 8.0.28

Description:

We are currently using a filesystem that is hosted at DigitalOcean (space), we are using the AWS adapter requiring a few packages, one of the packages: aws/aws-sdk-php

By upgrading from 3.242.1 to 3.243.0 we suddenly got issues in our system (a nasty Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '256' frames)
image

We tested by pinning in our composer.json
"aws/aws-sdk-php": "3.242.1", -> OK
"aws/aws-sdk-php": "3.243.0", -> NOT OK

After investigation, we identified this bug reported on that repo:
aws/aws-sdk-php#2563

We tried to apply the patch proposed on src/Illuminate/Filesystem/FilesystemManager.php (before $client = new S3Client($s3Config)):
$s3Config['endpoint_provider'] = PartitionEndpointProvider::defaultProvider();
and that fixes the issue...

Seems like it's linked to a file that starts with / (example : /private/image.gif )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions