Error when selecting S3 Bucket

Open
#112 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
aws, php
Domain
cloud

Research direction

Reproduce the failure by creating a job, selecting S3, entering AWS credentials, and selecting a bucket. Start with vendor/aws/aws-sdk-php/src/Handler/GuzzleV6/GuzzleHandler.php and vendor/guzzlehttp/promises/src/Promise.php, using the supplied stack trace to follow the error path. Done means bucket selection works and the settings can be saved without the fatal error.

Written by the indexing model from the issue text.

Description

Describe the bug

I get this when I want to select a s3 Bucket after introducing my AWS keys

Fatal error: Uncaught TypeError: Argument 1 passed to Aws\Handler\GuzzleV6\GuzzleHandler::Aws\Handler\GuzzleV6\{closure}() must be an instance of Exception, instance of Error given, called in /var/www/web/wp-content/plugins/backwpup/vendor/guzzlehttp/promises/src/Promise.php on line 203 and defined in /var/www/web/wp-content/plugins/backwpup/vendor/aws/aws-sdk-php/src/Handler/GuzzleV6/GuzzleHandler.php:45 Stack trace: #0 /var/www/web/wp-content/plugins/backwpup/vendor/guzzlehttp/promises/src/Promise.php(203): Aws\Handler\GuzzleV6\GuzzleHandler::Aws\Handler\GuzzleV6\{closure}() #1 /var/www/web/wp-content/plugins/backwpup/vendor/guzzlehttp/promises/src/Promise.php(156): GuzzleHttp\Promise\Promise::callHandler() #2 /var/www/web/wp-content/plugins/backwpup/vendor/guzzlehttp/promises/src/TaskQueue.php(47): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}() #3 /var/www/web/wp-content/plugins/backwpup/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php(118): GuzzleHttp\Promise\TaskQueue->run() #4 /var/www/web/wp-co in /var/www/web/wp-content/plugins/backwpup/vendor/aws/aws-sdk-php/src/Handler/GuzzleV6/GuzzleHandler.php on line 45

To Reproduce
Steps to reproduce the behavior:

  1. Create a Job
  2. Select s3 as destination service.
  3. introuduce your aws credentials.
  4. Try to select a bucket.

Expected behavior
I expected to be able to select a bucket and then save my settings.

System (please complete the following information):

  • OS: Linux
  • Version Ubuntu 20.04

Additional context
Add any other context about the problem here.

Dominant language
PHP
Stars
95
Forks
46
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from wp-media/backwpup

All issues in wp-media/backwpup

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.