Skip to content

Conversation

@johanrosenson
Copy link

@johanrosenson johanrosenson commented Nov 1, 2025

Undefined array key "debug" at aws-sdk-php/src/TraceMiddleware.php:289

Description of changes:

When setting the debug.http option to false the above exception will be thrown because $command['@http']['debug'] doesn't exist, adding a null check fixes the issue.

new S3Client([
    'debug' => [
        'logfn' => ...
        'http' => false,
    ],
]);

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

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

Successfully merging this pull request may close these issues.

1 participant