[TH] Spotify [Deleted]

Does anyone have this working on their forum? I would like to see what it looks like working.
 
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) {
  }
}
 
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) {
  }
}
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.
 
Big and exciting changes are coming as we adjust our trajectory, just know that we’ll be with you every step of the way. Take a look at our announcement here for more information. If you have any questions, please contact us here so we can assist.

*People who have purchased this product in the past will continue to have access to updates as long as the product is maintained. The license it was purchased under will remain intact.
 
No plans to offer this as this add-on is specifically for Spotify although would be an idea for a separate add-on :)
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 API
 
Anyone knows how to put this into user signature area? So it auto shows the current playback of users without people clicking on the button. I tried something but couldn't achieve..

1706446134713.webp
 
Top Bottom