Sim
Well-known member
And this one...
Code:SparkPost\SparkPostException: Job Hampel\SparkPostMail:MessageEvent: {"errors": [ {"message": "Unauthorized."} ]} src/addons/Hampel/SparkPostMail/vendor/sparkpost/sparkpost/lib/SparkPost/SparkPostPromise.php:77
Code:#0 src/addons/Hampel/SparkPostMail/SubContainer/SparkPost.php(67): SparkPost\SparkPostPromise->wait() #1 src/addons/Hampel/SparkPostMail/Job/MessageEvent.php(42): Hampel\SparkPostMail\SubContainer\SparkPost->getMessageEvents(1, 1000, Array, 1727085323, 1728035723) #2 src/XF/Job/Manager.php(275): Hampel\SparkPostMail\Job\MessageEvent->run(8) #3 src/XF/Job/Manager.php(205): XF\Job\Manager->runJobInternal(Array, 8) #4 src/XF/Job/Manager.php(89): XF\Job\Manager->runJobEntry(Array, 8) #5 job.php(46): XF\Job\Manager->runQueue(false, 8) #6 {main}
Code:Previous GuzzleHttp\Exception\ClientException: Client error: `GET https://api.sparkpost.com/api/v1/events/message?page=1&per_page=1000&events=bounce,policy_rejection,out_of_band,generation_rejection,spam_complaint,list_unsubscribe,link_unsubscribe&from=2024-09-23T09%3A55&to=2024-10-04T09%3A55` resulted in a `401 Unauthorized` response: {"errors": [ {"message": "Unauthorized."} ]} - src/addons/Hampel/SparkPostMail/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:111 #0 src/addons/Hampel/SparkPostMail/vendor/guzzlehttp/guzzle/src/Middleware.php(72): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response), NULL, Array, NULL) #1 src/addons/Hampel/SparkPostMail/vendor/guzzlehttp/promises/src/Promise.php(209): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response)) #2 src/addons/Hampel/SparkPostMail/vendor/guzzlehttp/promises/src/Promise.php(158): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), NULL) #3 src/addons/Hampel/SparkPostMail/vendor/guzzlehttp/promises/src/TaskQueue.php(52): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}() #4 src/addons/Hampel/SparkPostMail/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php(167): GuzzleHttp\Promise\TaskQueue->run() #5 src/addons/Hampel/SparkPostMail/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php(206): GuzzleHttp\Handler\CurlMultiHandler->tick() #6 src/addons/Hampel/SparkPostMail/vendor/guzzlehttp/promises/src/Promise.php(251): GuzzleHttp\Handler\CurlMultiHandler->execute(true) #7 src/addons/Hampel/SparkPostMail/vendor/guzzlehttp/promises/src/Promise.php(227): GuzzleHttp\Promise\Promise->invokeWaitFn() #8 src/addons/Hampel/SparkPostMail/vendor/guzzlehttp/promises/src/Promise.php(272): GuzzleHttp\Promise\Promise->waitIfPending() #9 src/addons/Hampel/SparkPostMail/vendor/guzzlehttp/promises/src/Promise.php(229): GuzzleHttp\Promise\Promise->invokeWaitList() #10 src/addons/Hampel/SparkPostMail/vendor/guzzlehttp/promises/src/Promise.php(69): GuzzleHttp\Promise\Promise->waitIfPending() #11 src/addons/Hampel/SparkPostMail/vendor/php-http/guzzle7-adapter/src/Promise.php(94): GuzzleHttp\Promise\Promise->wait(false) #12 src/addons/Hampel/SparkPostMail/vendor/sparkpost/sparkpost/lib/SparkPost/SparkPostPromise.php(73): Http\Adapter\Guzzle7\Promise->wait(true) #13 src/addons/Hampel/SparkPostMail/SubContainer/SparkPost.php(67): SparkPost\SparkPostPromise->wait() #14 src/addons/Hampel/SparkPostMail/Job/MessageEvent.php(42): Hampel\SparkPostMail\SubContainer\SparkPost->getMessageEvents(1, 1000, Array, 1727085323, 1728035723) #15 src/XF/Job/Manager.php(275): Hampel\SparkPostMail\Job\MessageEvent->run(8) #16 src/XF/Job/Manager.php(205): XF\Job\Manager->runJobInternal(Array, 8) #17 src/XF/Job/Manager.php(89): XF\Job\Manager->runJobEntry(Array, 8) #18 job.php(46): XF\Job\Manager->runQueue(false, 8) #19 {main}
Was my Sparkpost account misconfigured?
View attachment 312014
I just changed to this
View attachment 312015
I'm running CF
View attachment 312016
View attachment 312017
Thanks.
Does your API key have the "Events Search: Read-only" permission?