SeToY
Well-known member
ThisOr does this simply just show what they are playing in real-time?
ThisOr does this simply just show what they are playing in real-time?
Changes:
- Hardened playback saving against temporary API outages and unexpected API results, reducing the overall likeliness to receive errors.
ThemeHouse updated [TH] Spotify with a new update entry:
Version 1.0.3 Patch Level 3 released!
Read the rest of this update entry...
Allow me to check with our team on this to see if this type of feature is doable or notany chance to get the songs in the widgets as clickable links?
Allow me to check with our team on this to see if this type of feature is doable or not![]()
Apologies for the delay on this. I did hear back and this is surely possible. I've gone ahead and created an issue on it on our issue tracker.any updates?
Server error log
GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: accounts.spotify.com; Unknown error (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) src/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:185
Generated by: Aries Feb 10, 2021 at 3:30 PM
Stack trace
#0 src/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(149): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)
#1 src/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(102): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#2 src/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#3 src/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#4 src/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(51): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#5 src/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(66): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#6 src/vendor/guzzlehttp/guzzle/src/Middleware.php(30): GuzzleHttp\PrepareBodyMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#7 src/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(70): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#8 src/vendor/guzzlehttp/guzzle/src/Middleware.php(58): GuzzleHttp\RedirectMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#9 src/vendor/guzzlehttp/guzzle/src/HandlerStack.php(67): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#10 src/vendor/guzzlehttp/guzzle/src/Client.php(277): GuzzleHttp\HandlerStack->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#11 src/vendor/guzzlehttp/guzzle/src/Client.php(125): GuzzleHttp\Client->transfer(Object(GuzzleHttp\Psr7\Request), Array)
#12 src/vendor/guzzlehttp/guzzle/src/Client.php(131): GuzzleHttp\Client->requestAsync('post', Object(GuzzleHttp\Psr7\Uri), Array)
#13 src/vendor/guzzlehttp/guzzle/src/Client.php(89): GuzzleHttp\Client->request('post', 'https://account...', Array)
#14 src/addons/ThemeHouse/Core/Http/HttpClient/20181220.php(23): GuzzleHttp\Client->__call('post', Array)
#15 src/addons/ThemeHouse/Spotify/Util/Spotify/AbstractSpotify.php(229): ThemeHouse\Core\Http\HttpClient->simplePost('https://account...', Array, Array)
#16 src/addons/ThemeHouse/Spotify/Util/Spotify/AbstractSpotify.php(203): ThemeHouse\Spotify\Util\Spotify\AbstractSpotify->refreshAuthorizationToken()
#17 src/addons/ThemeHouse/Spotify/Util/Spotify/AbstractSpotify.php(148): ThemeHouse\Spotify\Util\Spotify\AbstractSpotify->getAuthorizationToken()
#18 src/addons/ThemeHouse/Spotify/Util/Spotify/Player.php(18): ThemeHouse\Spotify\Util\Spotify\AbstractSpotify->request('me/player')
#19 src/addons/ThemeHouse/Spotify/Service/Player/UpdatePlayback.php(51): ThemeHouse\Spotify\Util\Spotify\Player->getCurrentPlayback()
#20 src/addons/ThemeHouse/Spotify/Pub/Controller/Spotify.php(65): ThemeHouse\Spotify\Service\Player\UpdatePlayback->updateCurrentPlayback()
#21 src/XF/Mvc/Dispatcher.php(350): ThemeHouse\Spotify\Pub\Controller\Spotify->actionUpdateCurrentPlayback(Object(XF\Mvc\ParameterBag))
#22 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('ThemeHouse\\Spot...', 'UpdateCurrentPl...', Object(XF\Mvc\RouteMatch), Object(ThemeHouse\Spotify\Pub\Controller\Spotify), NULL)
#23 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(ThemeHouse\Spotify\Pub\Controller\Spotify), NULL)
#24 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#25 src/XF/App.php(2326): XF\Mvc\Dispatcher->run()
#26 src/XF.php(488): XF\App->run()
#27 index.php(20): XF::runApp('XF\\Pub\\App')
#28 {main}
Request state
array(4) {
["url"] => string(150) "/index.php?spotify/update-current-playback&_xfRequestUri=%2F&_xfWithData=1&_xfToken=1612971005%2C0c51e92cbdd487f48ce0ff5d4d5ed05d&_xfResponseType=json"
["referrer"] => string(25) "https://www.joyfreak.com/"
["_GET"] => array(5) {
["spotify/update-current-playback"] => string(0) ""
["_xfRequestUri"] => string(1) "/"
["_xfWithData"] => string(1) "1"
["_xfToken"] => string(43) "1612971005,0c51e92cbdd487f48ce0ff5d4d5ed05d"
["_xfResponseType"] => string(4) "json"
}
["_POST"] => array(0) {
}
}
This appears to be a network connection issue, your server can't resolve Spotify's domain, which sounds like either an issue with your server or the network it's connected to. If it continues, contact your host and see if there's anything blocking the network request or DNS lookup.Hi,
I have this error recorded, please advise:
Code:Server error log GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: accounts.spotify.com; Unknown error (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) src/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:185 Generated by: Aries Feb 10, 2021 at 3:30 PM Stack trace #0 src/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(149): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array) #1 src/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(102): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory)) #2 src/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory)) #3 src/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke(Object(GuzzleHttp\Psr7\Request), Array) #4 src/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(51): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array) #5 src/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(66): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array) #6 src/vendor/guzzlehttp/guzzle/src/Middleware.php(30): GuzzleHttp\PrepareBodyMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array) #7 src/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(70): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array) #8 src/vendor/guzzlehttp/guzzle/src/Middleware.php(58): GuzzleHttp\RedirectMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array) #9 src/vendor/guzzlehttp/guzzle/src/HandlerStack.php(67): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array) #10 src/vendor/guzzlehttp/guzzle/src/Client.php(277): GuzzleHttp\HandlerStack->__invoke(Object(GuzzleHttp\Psr7\Request), Array) #11 src/vendor/guzzlehttp/guzzle/src/Client.php(125): GuzzleHttp\Client->transfer(Object(GuzzleHttp\Psr7\Request), Array) #12 src/vendor/guzzlehttp/guzzle/src/Client.php(131): GuzzleHttp\Client->requestAsync('post', Object(GuzzleHttp\Psr7\Uri), Array) #13 src/vendor/guzzlehttp/guzzle/src/Client.php(89): GuzzleHttp\Client->request('post', 'https://account...', Array) #14 src/addons/ThemeHouse/Core/Http/HttpClient/20181220.php(23): GuzzleHttp\Client->__call('post', Array) #15 src/addons/ThemeHouse/Spotify/Util/Spotify/AbstractSpotify.php(229): ThemeHouse\Core\Http\HttpClient->simplePost('https://account...', Array, Array) #16 src/addons/ThemeHouse/Spotify/Util/Spotify/AbstractSpotify.php(203): ThemeHouse\Spotify\Util\Spotify\AbstractSpotify->refreshAuthorizationToken() #17 src/addons/ThemeHouse/Spotify/Util/Spotify/AbstractSpotify.php(148): ThemeHouse\Spotify\Util\Spotify\AbstractSpotify->getAuthorizationToken() #18 src/addons/ThemeHouse/Spotify/Util/Spotify/Player.php(18): ThemeHouse\Spotify\Util\Spotify\AbstractSpotify->request('me/player') #19 src/addons/ThemeHouse/Spotify/Service/Player/UpdatePlayback.php(51): ThemeHouse\Spotify\Util\Spotify\Player->getCurrentPlayback() #20 src/addons/ThemeHouse/Spotify/Pub/Controller/Spotify.php(65): ThemeHouse\Spotify\Service\Player\UpdatePlayback->updateCurrentPlayback() #21 src/XF/Mvc/Dispatcher.php(350): ThemeHouse\Spotify\Pub\Controller\Spotify->actionUpdateCurrentPlayback(Object(XF\Mvc\ParameterBag)) #22 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('ThemeHouse\\Spot...', 'UpdateCurrentPl...', Object(XF\Mvc\RouteMatch), Object(ThemeHouse\Spotify\Pub\Controller\Spotify), NULL) #23 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(ThemeHouse\Spotify\Pub\Controller\Spotify), NULL) #24 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch)) #25 src/XF/App.php(2326): XF\Mvc\Dispatcher->run() #26 src/XF.php(488): XF\App->run() #27 index.php(20): XF::runApp('XF\\Pub\\App') #28 {main} Request state array(4) { ["url"] => string(150) "/index.php?spotify/update-current-playback&_xfRequestUri=%2F&_xfWithData=1&_xfToken=1612971005%2C0c51e92cbdd487f48ce0ff5d4d5ed05d&_xfResponseType=json" ["referrer"] => string(25) "https://www.joyfreak.com/" ["_GET"] => array(5) { ["spotify/update-current-playback"] => string(0) "" ["_xfRequestUri"] => string(1) "/" ["_xfWithData"] => string(1) "1" ["_xfToken"] => string(43) "1612971005,0c51e92cbdd487f48ce0ff5d4d5ed05d" ["_xfResponseType"] => string(4) "json" } ["_POST"] => array(0) { } }
yesDoes anyone have this running on XF 2.2?
No plans to offer this as this add-on is specifically for Spotify although would be an idea for a separate add-onyes
but I'd love to see an updated version with Apple Music (and other streaming services) included
I'd be very interested in a single addon that could track Now Playing activity in spotify/apple music/bandcamp/soundcloud/whatever other services that might have an APINo plans to offer this as this add-on is specifically for Spotify although would be an idea for a separate add-on![]()
We use essential cookies to make this site work, and optional cookies to enhance your experience.