dirkgroenen / mopidy-mopify

A web client that uses external web services to provide additional features and a more “complete” music experience.
Apache License 2.0
447 stars 44 forks source link

no connection #247

Closed DerT94 closed 4 years ago

DerT94 commented 4 years ago

Hi,

mopify get no connection to soptify service. image

If i click "Reconnect with Spotify" a window opens briefly in which successfull login is written.

qbradford commented 4 years ago

Try opening in Firefox. I receive this in Chrome. A check in the console revealed a same site cookies error:


Failed to load resource: the server responded with a status of 401 ()
mopidy-mopify-1.7.3.js:47384 TypeError: Cannot read property 'images' of undefined
    at mopidy-mopify-1.7.3.js:46783
    at g (mopidy-mopify-1.7.3.js:19023)
    at mopidy-mopify-1.7.3.js:19039
    at o.$eval (mopidy-mopify-1.7.3.js:20297)
    at o.$digest (mopidy-mopify-1.7.3.js:20110)
    at o.$apply (mopidy-mopify-1.7.3.js:20405)
    at i (mopidy-mopify-1.7.3.js:14556)
    at u (mopidy-mopify-1.7.3.js:14762)
    at XMLHttpRequest.x.onload (mopidy-mopify-1.7.3.js:14695)
(anonymous) @ mopidy-mopify-1.7.3.js:47384
mopidy-mopify-1.7.3.js:48363 Websocket: connection ready
:6680/mopify/#/discover/featured:1 A cookie associated with a cross-site resource at http://bitlabs.nl/ was set without the `SameSite` attribute. It has been blocked, as Chrome now only delivers cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
6:6680/mopify/#/discover/featured:1 Uncaught SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at mopidy-mopify-1.7.3.js:49042
61VM113:1 Uncaught SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at mopidy-mopify-1.7.3.js:49042
jeffanberg commented 4 years ago

If you wish to continue using chrome, you can also edit the cookie directly by going to the Inspect tool -> Application -> Cookies and changing the SameSite value to "None" and enabling the "Secure" value.

DerT94 commented 4 years ago

Sorry for the late response.

It works with Firefox

ejancorp commented 2 years ago

Experience this one also, but firefox is fine, what I did is use firefox, connect spotify, enable sync, set force sync on, enable spotify credentials, then push. Then go to my edge and chrome browser and enable sync. Then connect spotify, if credentials didnt get synced click get to retrieve credentials manually.