Issue setting up - sending verification email through AWS

serbanovvostrov

New Member
Hi,
Trying to setup, using AWS and I get the error below:

Please find attached screenshots as well.

Thank you for your help.

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/vhosts/dtstudyclub.com/email.dtstudyclub.com/mailer/apps/common/vendors/Composer/vendor/guzzlehttp/promises/src/Promise.php on line 203
 

Attachments

  • MailWizz | Update server-2020-10-21 at 11.48.40.png
    MailWizz | Update server-2020-10-21 at 11.48.40.png
    254.8 KB · Views: 5
  • Error 500!-2020-10-21 at 11.49.41.png
    Error 500!-2020-10-21 at 11.49.41.png
    95.3 KB · Views: 5

twisted1919

Administrator
Staff member
Okay, let us run some tests on that PHP version and Amazon SES and we will update you.
I assume you're using latest app version, right?
@laurentiu - Please run these tests and let me know the results.
 

serbanovvostrov

New Member
Quite sure.
Mailwizz version 1.9.14
PHP 7.3.2. I have downgraded to 7.2 and 7.0 but still got the same issue.

However if I downgrade to 5.6 it works ok.

Same with the console.php cron job, it returns this error when ran on php 7+ but no error on 5.6.

Please help.

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/vhosts/mydomain.com/email.mydomain.com/mailer/apps/common/vendors/Composer/vendor/guzzlehttp/promises/src/Promise.php on line 203 and defined in /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/common/vendors/Composer/vendor/aws/aws-sdk-php/src/Handler/GuzzleV6/GuzzleHandler.php:45
Stack trace:
#0 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/common/vendors/Composer/vendor/guzzlehttp/promises/src/Promise.php(203): Aws\Handler\GuzzleV6\GuzzleHandler::Aws\Handler\GuzzleV6\{closure}(Object(Error))
#1 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/common/vendors/Composer/vendor/guzzlehttp/promises/src/Promise.php(156): GuzzleHttp\Promise\Promise::callHandler(2, Object(Error), Array)
#2 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/common/vendors/Composer/vendor/guzzlehttp/promises/src/TaskQueue.php(47): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}()
#3 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/common/vendors/Composer/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php(118): GuzzleHttp\Promise\TaskQueue->run()
#4 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/common/vendors/Composer/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php(145): GuzzleHttp\Handler\CurlMultiHandler->tick()
#5 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/common/vendors/Composer/vendor/guzzlehttp/promises/src/Promise.php(246): GuzzleHttp\Handler\CurlMultiHandler->execute(true)
#6 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/common/vendors/Composer/vendor/guzzlehttp/promises/src/Promise.php(223): GuzzleHttp\Promise\Promise->invokeWaitFn()
#7 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/common/vendors/Composer/vendor/guzzlehttp/promises/src/Promise.php(267): GuzzleHttp\Promise\Promise->waitIfPending()
#8 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/common/vendors/Composer/vendor/guzzlehttp/promises/src/Promise.php(225): GuzzleHttp\Promise\Promise->invokeWaitList()
#9 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/common/vendors/Composer/vendor/guzzlehttp/promises/src/Promise.php(267): GuzzleHttp\Promise\Promise->waitIfPending()
#10 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/common/vendors/Composer/vendor/guzzlehttp/promises/src/Promise.php(225): GuzzleHttp\Promise\Promise->invokeWaitList()
#11 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/common/vendors/Composer/vendor/guzzlehttp/promises/src/Promise.php(62): GuzzleHttp\Promise\Promise->waitIfPending()
#12 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/common/vendors/Composer/vendor/aws/aws-sdk-php/src/AwsClientTrait.php(58): GuzzleHttp\Promise\Promise->wait()
#13 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/common/vendors/Composer/vendor/aws/aws-sdk-php/src/AwsClientTrait.php(86): Aws\AwsClient->execute(Object(Aws\Command))
#14 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/common/models/DeliveryServerAmazonSesWebApi.php(97): Aws\AwsClient->__call('sendRawEmail', Array)
#15 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/console/commands/SendCampaignsCommand.php(1786): DeliveryServerAmazonSesWebApi->sendEmail(Array)
#16 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/console/commands/SendCampaignsCommand.php(1318): SendCampaignsCommand->processSubscribersLoop(Array)
#17 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/console/commands/SendCampaignsCommand.php(1170): SendCampaignsCommand->sendCampaignStep3(Array)
#18 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/console/commands/SendCampaignsCommand.php(1010): SendCampaignsCommand->sendCampaignStep2(Array)
#19 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/console/commands/SendCampaignsCommand.php(877): SendCampaignsCommand->sendCampaignStep1(2, 0)
#20 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/console/commands/SendCampaignsCommand.php(375): SendCampaignsCommand->sendCampaignStep0(Array)
#21 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/console/commands/SendCampaignsCommand.php(200): SendCampaignsCommand->process()
#22 [internal function]: SendCampaignsCommand->actionIndex()
#23 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/common/framework/console/CConsoleCommand.php(172): ReflectionMethod->invokeArgs(Object(SendCampaignsCommand), Array)
#24 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/common/framework/console/CConsoleCommandRunner.php(71): CConsoleCommand->run(Array)
#25 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/common/framework/console/CConsoleApplication.php(92): CConsoleCommandRunner->run(Array)
#26 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/common/framework/base/CApplication.php(185): CConsoleApplication->processRequest()
#27 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/init.php(229): CApplication->run()
#28 /var/www/vhosts/mydomain.com/email.mydomain.com/mailer/apps/console/console.php(28): require_once('/var/www/vhosts...')
#29 {main}
 

twisted1919

Administrator
Staff member
However if I downgrade to 5.6 it works ok.

Same with the console.php cron job, it returns this error when ran on php 7+ but no error on 5.6.

Please help.
We cannot reproduce this currently, which makes it difficult to trouble shoot.
I see in your other post that you get an error related to the region, so that might be the reason, once you use the correct details for the correct region and validate the server, i think this error will go away as well.

@laurentiu - please do a test where you use an email address not valid for the selected region, this way we can see if we can trigger the error above.
 

twisted1919

Administrator
Staff member
@serbanovvostrov - we just updated dependencies and it seems aws pushed an update for the php library:
Code:
- Removing aws/aws-sdk-php (3.155.3)
  - Installing aws/aws-sdk-php (3.158.12)
So in the next release, we will have this library update, which might fix your issue.
 
Top