Send test email from civicrm/admin/setting/sparkpost fails with 503
Created by: mikantchap
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) }