cividesk / com.cividesk.email.sparkpost

This extension allows CiviCRM to send emails and process bounces through the SparkPost service.
10 stars 30 forks source link

Send test email from civicrm/admin/setting/sparkpost fails with 503 #94

Open mikantchap opened 4 years ago

mikantchap commented 4 years ago

Sending test email from civicrm/admin/setting/sparkpost fails with 503.

Get the error: SparkPost error Could not check status for domain ght.org.uk (Exception Sparkpost error: HTTP return code 503, Sparkpost error code (Unable to contact authorization service.: ). Check https://support.sparkpost.com/customer/en/portal/articles/2140916-extended-error-codes for interpretation.).

Sparkpost.log has: ==== ERROR in CRM_Sparkpost::call() ==== stdClass Object ( [errors] => Array ( [0] => stdClass Object ( [message] => Unable to contact authorization service. )

    )

)

Debugged com.cividesk.email.sparkpost/CRM/Sparkpost.php: It is attempting to connect with https://api.sparkpost.com/api/v1/sending-domains/OURDOMAINNAME

if you use that in a browser you get { errors: [ { message: "Unauthorized." } ]

I can log into sparkpost and have generated a new API key (and set it) }

mikantchap commented 4 years ago

Does this extension use Mcrypt (php-mcrypt) for password storage? I am told this isn't in php 7.2. That's the most recent change on our system.

adixon commented 3 years ago

True - a php upgrade could mean that the password that is being sent to sparkpost is wrong - because that password was saved encrypted and civi no longer has the ability to unencrypt it.

If you just resave the password, it should start working, if this is the issue.