TappNetwork / laravel-uppy-s3-multipart-upload

Multipart Uploads using Laravel, AWS S3, and Uppy
MIT License
69 stars 18 forks source link

Error if AWS_USE_ACCELERATE_ENDPOINT=true (works fine if FALSE) #24

Open VadimBesedin opened 10 months ago

VadimBesedin commented 10 months ago

Project based on Laravel 10.

If in the .env file I enable: AWS_USE_ACCELERATE_ENDPOINT=true After browsing for a file, uploader throws an error.

And works fine when: AWS_USE_ACCELERATE_ENDPOINT=false

RESPONSE:

"message": "Call to undefined method Aws\Exception\UnresolvedEndpointException::getStatusCode()", "exception": "Error", "file": "...\vendor\tapp\laravel-uppy-s3-multipart-upload\src\Http\Controllers\UppyS3MultipartController.php", "line": 122, "trace": [ { "file": "...\vendor\laravel\framework\src\Illuminate\Routing\Controller.php", "line": 54, "function": "createMultipartUpload", "class": "Tapp\LaravelUppyS3MultipartUpload\Http\Controllers\UppyS3MultipartController", "type": "->" }

HEADERS:

{ "POST": { "scheme": "http", "host": "127.0.0.1:8000", "filename": "/s3/multipart", "remote": { "Address": "127.0.0.1:8000" } } } { "Status": "500Internal Server Error", "Version": "HTTP/1.1", "Transferred": "11.57 kB (11.29 kB size)", "Referrer Policy": "strict-origin-when-cross-origin", "DNS Resolution": "System" }