GrahamCampbell/Laravel-Flysystem

putFileAs() stops working after AWS-SDK composer update to 3.31.0

steve-rhodes opened this issue · 1 comments

aws/aws-sdk-php 3.31.1
laravel/framework v5.4.28
league/flysystem 1.0.40
league/flysystem-aws-s3-v3 1.0.18
guzzlehttp/guzzle 6.3.0
guzzlehttp/promises v1.3.1
guzzlehttp/psr7 1.4.2

The problems starts when updating the aws-sdk-php from 30.4 to 31.0.

Reading the changelog:

{
        "type": "feature",
        "category": "S3",
        "description": "A new `params` option is available in the `MultipartUploader` and `MultipartCopy` classes for parameters that should be applied to all sub-commands of their upload functionality. This also improves functionality around passing `params` directly to `ObjectUploader` and `ObjectCopier`. A new `before_lookup` callback has been added to `ObjectCopier` for operating on the `HeadObject` command directly; `params` will be passed to HeadObject as well. Since these are changes to existing options, they may alter current functionality."
    },
    {
        "type": "enhancement",
        "category": "MarketplaceCommerceAnalytics",
        "description": "Documentation updates for AWS Marketplace Commerce Analytics."
    },
    {
        "type": "api-change",
        "category": "S3",
        "description": "API Update for S3: Adding Object Tagging Header to MultipartUpload Initialization"
    }

Must be something here that breaks everything.

This is the code l use:

$temp_path = "../storage/app/temp/" . $temp_file;
Storage::disk('s3')->putFileAs('', new \Illuminate\Http\File($temp_path),$to_path);

I use it to stream a file from my local storage to S3.

Any idea?
Thanks

Here the errors:

[2017-07-06 13:18:33] local.ERROR: Aws\S3\Exception\S3MultipartUploadException: An exception occurred while uploading parts to a multipart upload. The following parts had errors:
- Part 1: Error executing "UploadPart" on "https://test-elasticstage.s3.eu-west-2.amazonaws.com/1/releases/6/tracks/aH297QT8_1499346955.wav?partNumber=1&uploadId=jSajVcnqJUKpD8RssH3oEU.ZihyFtwuk15oym64uKJBymNxWllrDpW5holzGl5q7dMBvWvimEPCkIQLO6ozckBGhnzumhEij.Ovomsyk3DP2IExuYMFWQU0uce43SJ7P"; AWS HTTP error: Client error: `PUT https://test-elasticstage.s3.eu-west-2.amazonaws.com/1/releases/6/tracks/aH297QT8_1499346955.wav?partNumber=1&uploadId=jSajVcnqJUKpD8RssH3oEU.ZihyFtwuk15oym64uKJBymNxWllrDpW5holzGl5q7dMBvWvimEPCkIQLO6ozckBGhnzumhEij.Ovomsyk3DP2IExuYMFWQU0uce43SJ7P` resulted in a `400 Bad Request` response:
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>RequestTimeout</Code><Message>Your socket connection to the server w (truncated...)
 RequestTimeout (client): Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed. - <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>RequestTimeout</Code><Message>Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.</Message><RequestId>CC73BF774376B901</RequestId><HostId>R/44BG3tebWCRrJkNXg7KfQzea8mJW4YoAywfJwkS4gDs3VpsNdQngfaMg1+Fk6ZeLxn5atyeS0=</HostId></Error>
- Part 2: Error executing "UploadPart" on "https://test-elasticstage.s3.eu-west-2.amazonaws.com/1/releases/6/tracks/aH297QT8_1499346955.wav?partNumber=2&uploadId=jSajVcnqJUKpD8RssH3oEU.ZihyFtwuk15oym64uKJBymNxWllrDpW5holzGl5q7dMBvWvimEPCkIQLO6ozckBGhnzumhEij.Ovomsyk3DP2IExuYMFWQU0uce43SJ7P"; AWS HTTP error: Client error: `PUT https://test-elasticstage.s3.eu-west-2.amazonaws.com/1/releases/6/tracks/aH297QT8_1499346955.wav?partNumber=2&uploadId=jSajVcnqJUKpD8RssH3oEU.ZihyFtwuk15oym64uKJBymNxWllrDpW5holzGl5q7dMBvWvimEPCkIQLO6ozckBGhnzumhEij.Ovomsyk3DP2IExuYMFWQU0uce43SJ7P` resulted in a `400 Bad Request` response:
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>RequestTimeout</Code><Message>Your socket connection to the server w (truncated...)
 RequestTimeout (client): Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed. - <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>RequestTimeout</Code><Message>Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.</Message><RequestId>62398ECF9AFF6DE5</RequestId><HostId>5AecXnWA5mI9NMyrMMIe1ph+2I/79TOt2du9TAIKleNMW5UkkO3IFvsOMVWcgbWM7EU1J3T6ysE=</HostId></Error>
- Part 3: Error executing "UploadPart" on "https://test-elasticstage.s3.eu-west-2.amazonaws.com/1/releases/6/tracks/aH297QT8_1499346955.wav?partNumber=3&uploadId=jSajVcnqJUKpD8RssH3oEU.ZihyFtwuk15oym64uKJBymNxWllrDpW5holzGl5q7dMBvWvimEPCkIQLO6ozckBGhnzumhEij.Ovomsyk3DP2IExuYMFWQU0uce43SJ7P"; AWS HTTP error: Client error: `PUT https://test-elasticstage.s3.eu-west-2.amazonaws.com/1/releases/6/tracks/aH297QT8_1499346955.wav?partNumber=3&uploadId=jSajVcnqJUKpD8RssH3oEU.ZihyFtwuk15oym64uKJBymNxWllrDpW5holzGl5q7dMBvWvimEPCkIQLO6ozckBGhnzumhEij.Ovomsyk3DP2IExuYMFWQU0uce43SJ7P` resulted in a `400 Bad Request` response:
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>RequestTimeout</Code><Message>Your socket connection to the server w (truncated...)
 RequestTimeout (client): Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed. - <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>RequestTimeout</Code><Message>Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.</Message><RequestId>1C21B1C2EEBB7923</RequestId><HostId>x3toTJ7BrP7rkUkH5pvmb/DDAAUosrJITlxqZlSIJZMsMASI+tuAZ1wR+TA769Btf4eVohpLIno=</HostId></Error>
- Part 5: Error executing "UploadPart" on "https://test-elasticstage.s3.eu-west-2.amazonaws.com/1/releases/6/tracks/aH297QT8_1499346955.wav?partNumber=5&uploadId=jSajVcnqJUKpD8RssH3oEU.ZihyFtwuk15oym64uKJBymNxWllrDpW5holzGl5q7dMBvWvimEPCkIQLO6ozckBGhnzumhEij.Ovomsyk3DP2IExuYMFWQU0uce43SJ7P"; AWS HTTP error: Client error: `PUT https://test-elasticstage.s3.eu-west-2.amazonaws.com/1/releases/6/tracks/aH297QT8_1499346955.wav?partNumber=5&uploadId=jSajVcnqJUKpD8RssH3oEU.ZihyFtwuk15oym64uKJBymNxWllrDpW5holzGl5q7dMBvWvimEPCkIQLO6ozckBGhnzumhEij.Ovomsyk3DP2IExuYMFWQU0uce43SJ7P` resulted in a `400 Bad Request` response:
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>RequestTimeout</Code><Message>Your socket connection to the server w (truncated...)
 RequestTimeout (client): Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed. - <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>RequestTimeout</Code><Message>Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.</Message><RequestId>67BD8D32E4D41D23</RequestId><HostId>YA9V/BJ2JN2tcoYfD9tuJ5RMKi8QNs0qEyBHzxjuS5oRPdCEyyM/DkbmCuLkSZmLOXVOJzNiE8E=</HostId></Error>
- Part 4: Error executing "UploadPart" on "https://test-elasticstage.s3.eu-west-2.amazonaws.com/1/releases/6/tracks/aH297QT8_1499346955.wav?partNumber=4&uploadId=jSajVcnqJUKpD8RssH3oEU.ZihyFtwuk15oym64uKJBymNxWllrDpW5holzGl5q7dMBvWvimEPCkIQLO6ozckBGhnzumhEij.Ovomsyk3DP2IExuYMFWQU0uce43SJ7P"; AWS HTTP error: Client error: `PUT https://test-elasticstage.s3.eu-west-2.amazonaws.com/1/releases/6/tracks/aH297QT8_1499346955.wav?partNumber=4&uploadId=jSajVcnqJUKpD8RssH3oEU.ZihyFtwuk15oym64uKJBymNxWllrDpW5holzGl5q7dMBvWvimEPCkIQLO6ozckBGhnzumhEij.Ovomsyk3DP2IExuYMFWQU0uce43SJ7P` resulted in a `400 Bad Request` response:
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>RequestTimeout</Code><Message>Your socket connection to the server w (truncated...)
 RequestTimeout (client): Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed. - <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>RequestTimeout</Code><Message>Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.</Message><RequestId>9FFA31D312631A86</RequestId><HostId>Y745yIDptDUvpt+F9C2DI59L7U5HoO9iOdr0icL1VKLBlToXvDtaz5XbOLRIsWY+chQa5czwMjQ=</HostId></Error>
- Part 6: Error executing "UploadPart" on "https://test-elasticstage.s3.eu-west-2.amazonaws.com/1/releases/6/tracks/aH297QT8_1499346955.wav?partNumber=6&uploadId=jSajVcnqJUKpD8RssH3oEU.ZihyFtwuk15oym64uKJBymNxWllrDpW5holzGl5q7dMBvWvimEPCkIQLO6ozckBGhnzumhEij.Ovomsyk3DP2IExuYMFWQU0uce43SJ7P"; AWS HTTP error: Client error: `PUT https://test-elasticstage.s3.eu-west-2.amazonaws.com/1/releases/6/tracks/aH297QT8_1499346955.wav?partNumber=6&uploadId=jSajVcnqJUKpD8RssH3oEU.ZihyFtwuk15oym64uKJBymNxWllrDpW5holzGl5q7dMBvWvimEPCkIQLO6ozckBGhnzumhEij.Ovomsyk3DP2IExuYMFWQU0uce43SJ7P` resulted in a `400 Bad Request` response:
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>RequestTimeout</Code><Message>Your socket connection to the server w (truncated...)
 RequestTimeout (client): Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed. - <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>RequestTimeout</Code><Message>Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.</Message><RequestId>4A4A54FA22314252</RequestId><HostId>gcbyfrRaZupOfBTVKwdJ1f4WCTynrZ5UhN+37Fe5GKcGCyIqlxle/gQaxC2gyMQhRpH1SqQ61kU=</HostId></Error>
- Part 9: Error executing "UploadPart" on "https://test-elasticstage.s3.eu-west-2.amazonaws.com/1/releases/6/tracks/aH297QT8_1499346955.wav?partNumber=9&uploadId=jSajVcnqJUKpD8RssH3oEU.ZihyFtwuk15oym64uKJBymNxWllrDpW5holzGl5q7dMBvWvimEPCkIQLO6ozckBGhnzumhEij.Ovomsyk3DP2IExuYMFWQU0uce43SJ7P"; AWS HTTP error: Client error: `PUT https://test-elasticstage.s3.eu-west-2.amazonaws.com/1/releases/6/tracks/aH297QT8_1499346955.wav?partNumber=9&uploadId=jSajVcnqJUKpD8RssH3oEU.ZihyFtwuk15oym64uKJBymNxWllrDpW5holzGl5q7dMBvWvimEPCkIQLO6ozckBGhnzumhEij.Ovomsyk3DP2IExuYMFWQU0uce43SJ7P` resulted in a `400 Bad Request` response:
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>RequestTimeout</Code><Message>Your socket connection to the server w (truncated...)
 RequestTimeout (client): Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed. - <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>RequestTimeout</Code><Message>Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.</Message><RequestId>19E605BD4AC793B2</RequestId><HostId>BzB1ylI23yRVwV196SWLbc9xMUA9rJex4C7uX5i8GofuEtrlarGpudidnzDhG+e26HlJgzy74KI=</HostId></Error>
- Part 7: Error executing "UploadPart" on "https://test-elasticstage.s3.eu-west-2.amazonaws.com/1/releases/6/tracks/aH297QT8_1499346955.wav?partNumber=7&uploadId=jSajVcnqJUKpD8RssH3oEU.ZihyFtwuk15oym64uKJBymNxWllrDpW5holzGl5q7dMBvWvimEPCkIQLO6ozckBGhnzumhEij.Ovomsyk3DP2IExuYMFWQU0uce43SJ7P"; AWS HTTP error: Client error: `PUT https://test-elasticstage.s3.eu-west-2.amazonaws.com/1/releases/6/tracks/aH297QT8_1499346955.wav?partNumber=7&uploadId=jSajVcnqJUKpD8RssH3oEU.ZihyFtwuk15oym64uKJBymNxWllrDpW5holzGl5q7dMBvWvimEPCkIQLO6ozckBGhnzumhEij.Ovomsyk3DP2IExuYMFWQU0uce43SJ7P` resulted in a `400 Bad Request` response:
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>RequestTimeout</Code><Message>Your socket connection to the server w (truncated...)
 RequestTimeout (client): Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed. - <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>RequestTimeout</Code><Message>Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.</Message><RequestId>B9BA2221A615BF43</RequestId><HostId>frCO+yxOgiFd/PvVqZa8d5XiylizvnDxjxtVbVILvDUF2Ulf8iD0A9RzzDlPApXZrKIW8yx4GRY=</HostId></Error>
- Part 8: Error executing "UploadPart" on "https://test-elasticstage.s3.eu-west-2.amazonaws.com/1/releases/6/tracks/aH297QT8_1499346955.wav?partNumber=8&uploadId=jSajVcnqJUKpD8RssH3oEU.ZihyFtwuk15oym64uKJBymNxWllrDpW5holzGl5q7dMBvWvimEPCkIQLO6ozckBGhnzumhEij.Ovomsyk3DP2IExuYMFWQU0uce43SJ7P"; AWS HTTP error: Client error: `PUT https://test-elasticstage.s3.eu-west-2.amazonaws.com/1/releases/6/tracks/aH297QT8_1499346955.wav?partNumber=8&uploadId=jSajVcnqJUKpD8RssH3oEU.ZihyFtwuk15oym64uKJBymNxWllrDpW5holzGl5q7dMBvWvimEPCkIQLO6ozckBGhnzumhEij.Ovomsyk3DP2IExuYMFWQU0uce43SJ7P` resulted in a `400 Bad Request` response:
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>RequestTimeout</Code><Message>Your socket connection to the server w (truncated...)
 RequestTimeout (client): Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed. - <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>RequestTimeout</Code><Message>Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.</Message><RequestId>5E475319CE3A5FB5</RequestId><HostId>pzXw9nuaakpnB2/tD/H3N7hW58r1j87CCOBZlMUmIxzd82cRqOQ5pmv+eZHM1hGM1wXl2DXZkgc=</HostId></Error>
 in /home/vagrant/elasticstage/vendor/aws/aws-sdk-php/src/Multipart/AbstractUploadManager.php:127
Stack trace:
#0 [internal function]: Aws\Multipart\AbstractUploadManager->Aws\Multipart\{closure}()
#1 /home/vagrant/elasticstage/vendor/guzzlehttp/promises/src/Coroutine.php(122): Generator->send(NULL)
#2 /home/vagrant/elasticstage/vendor/guzzlehttp/promises/src/Promise.php(203): GuzzleHttp\Promise\Coroutine->_handleSuccess(NULL)
#3 /home/vagrant/elasticstage/vendor/guzzlehttp/promises/src/Promise.php(156): GuzzleHttp\Promise\Promise::callHandler(1, NULL, Array)
#4 /home/vagrant/elasticstage/vendor/guzzlehttp/promises/src/TaskQueue.php(47): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}()
#5 /home/vagrant/elasticstage/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php(96): GuzzleHttp\Promise\TaskQueue->run()
#6 /home/vagrant/elasticstage/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php(123): GuzzleHttp\Handler\CurlMultiHandler->tick()
#7 /home/vagrant/elasticstage/vendor/guzzlehttp/promises/src/Promise.php(246): GuzzleHttp\Handler\CurlMultiHandler->execute(true)
#8 /home/vagrant/elasticstage/vendor/guzzlehttp/promises/src/Promise.php(223): GuzzleHttp\Promise\Promise->invokeWaitFn()
#9 /home/vagrant/elasticstage/vendor/guzzlehttp/promises/src/Promise.php(267): GuzzleHttp\Promise\Promise->waitIfPending()
#10 /home/vagrant/elasticstage/vendor/guzzlehttp/promises/src/Promise.php(225): GuzzleHttp\Promise\Promise->invokeWaitList()
#11 /home/vagrant/elasticstage/vendor/guzzlehttp/promises/src/Promise.php(267): GuzzleHttp\Promise\Promise->waitIfPending()
#12 /home/vagrant/elasticstage/vendor/guzzlehttp/promises/src/Promise.php(225): GuzzleHttp\Promise\Promise->invokeWaitList()
#13 /home/vagrant/elasticstage/vendor/guzzlehttp/promises/src/Promise.php(62): GuzzleHttp\Promise\Promise->waitIfPending()
#14 /home/vagrant/elasticstage/vendor/guzzlehttp/promises/src/Coroutine.php(65): GuzzleHttp\Promise\Promise->wait()
#15 /home/vagrant/elasticstage/vendor/guzzlehttp/promises/src/Promise.php(246): GuzzleHttp\Promise\Coroutine->GuzzleHttp\Promise\{closure}(true)
#16 /home/vagrant/elasticstage/vendor/guzzlehttp/promises/src/Promise.php(223): GuzzleHttp\Promise\Promise->invokeWaitFn()
#17 /home/vagrant/elasticstage/vendor/guzzlehttp/promises/src/Promise.php(267): GuzzleHttp\Promise\Promise->waitIfPending()
#18 /home/vagrant/elasticstage/vendor/guzzlehttp/promises/src/Promise.php(225): GuzzleHttp\Promise\Promise->invokeWaitList()
#19 /home/vagrant/elasticstage/vendor/guzzlehttp/promises/src/Promise.php(62): GuzzleHttp\Promise\Promise->waitIfPending()
#20 /home/vagrant/elasticstage/vendor/aws/aws-sdk-php/src/S3/S3ClientTrait.php(30): GuzzleHttp\Promise\Promise->wait()
#21 /home/vagrant/elasticstage/vendor/league/flysystem-aws-s3-v3/src/AwsS3Adapter.php(583): Aws\S3\S3Client->upload('test-elasticsta...', '1/releases/6/tr...', Resource id #23, 'private', Array)
#22 /home/vagrant/elasticstage/vendor/league/flysystem-aws-s3-v3/src/AwsS3Adapter.php(368): League\Flysystem\AwsS3v3\AwsS3Adapter->upload('1/releases/6/tr...', Resource id #23, Object(League\Flysystem\Config))
#23 /home/vagrant/elasticstage/vendor/league/flysystem/src/Filesystem.php(122): League\Flysystem\AwsS3v3\AwsS3Adapter->writeStream('1/releases/6/tr...', Resource id #23, Object(League\Flysystem\Config))
#24 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemAdapter.php(118): League\Flysystem\Filesystem->putStream('1/releases/6/tr...', Resource id #23, Object(League\Flysystem\Config))
#25 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemAdapter.php(152): Illuminate\Filesystem\FilesystemAdapter->put('1/releases/6/tr...', Resource id #23, Array)
#26 /home/vagrant/elasticstage/app/Helpers/AwsS3.php(232): Illuminate\Filesystem\FilesystemAdapter->putFileAs('1/releases/6/tr...', Object(Illuminate\Http\File), '1/releases/6/tr...')
#27 /home/vagrant/elasticstage/app/Http/Controllers/ReleasesController.php(625): App\Helpers\AwsS3::convertAudio('wav', 'temp/6/tracks/a...', '1/releases/6/tr...')
#28 [internal function]: App\Http\Controllers\ReleasesController->claimS3file(Object(App\Release), Object(Illuminate\Http\Request))
#29 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(55): call_user_func_array(Array, Array)
#30 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(44): Illuminate\Routing\Controller->callAction('claimS3file', Array)
#31 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Routing/Route.php(203): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\ReleasesController), 'claimS3file')
#32 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Routing/Route.php(160): Illuminate\Routing\Route->runController()
#33 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Routing/Router.php(574): Illuminate\Routing\Route->run()
#34 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#35 /home/vagrant/elasticstage/app/Http/Middleware/ElasticStageBootstrap.php(187): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#36 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): App\Http\Middleware\ElasticStageBootstrap->handle(Object(Illuminate\Http\Request), Object(Closure))
#37 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#39 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(43): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#42 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\Auth\Middleware\Authenticate->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(65): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#45 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
#46 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#47 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#48 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#51 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#52 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#53 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#54 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
#55 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#56 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(59): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#57 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#58 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#59 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#60 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Routing/Router.php(576): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#61 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Routing/Router.php(535): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#62 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Routing/Router.php(513): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#63 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(176): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#64 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#65 /home/vagrant/elasticstage/vendor/barryvdh/laravel-debugbar/src/Middleware/Debugbar.php(51): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#66 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Barryvdh\Debugbar\Middleware\Debugbar->handle(Object(Illuminate\Http\Request), Object(Closure))
#67 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#68 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#69 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#70 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#71 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#72 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#73 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#74 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#75 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#76 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#77 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(46): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#78 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#79 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#80 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#81 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#82 /home/vagrant/elasticstage/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#83 /home/vagrant/elasticstage/public/index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#84 {main}

This has been fixed in AWS 3.31.3.