muse icon indicating copy to clipboard operation
muse copied to clipboard

Erroring Out Due to Spotify API Update (Updated API May 15)

Open Iota147 opened this issue 7 months ago • 2 comments

What's happening? Erroring out on start-up. After further investigation, Spotify seems to have updated its API version, so there is probably an issue regarding that. It has also errored out, saying it's an invalid cli ID and secret, but that may have been due to not accepting the new API terms

Logs

/usr/app/node_modules/spotify-web-api-node/src/http-manager.js:39


return new WebapiRegularError(response.body, response.headers, response.statusCode);


^




WebapiRegularError: An error occurred while communicating with Spotify's Web API.


Details: No token provided.


at _toError (/usr/app/node_modules/spotify-web-api-node/src/http-manager.js:39:12)


at /usr/app/node_modules/spotify-web-api-node/src/http-manager.js:71:25


at callback (/usr/app/node_modules/superagent/src/node/index.js:902:3)


at <anonymous> (/usr/app/node_modules/superagent/src/node/index.js:1130:18)


at IncomingMessage.<anonymous> (/usr/app/node_modules/superagent/src/node/parsers/json.js:19:7)


at Stream.emit (node:events:518:28)


at Unzip.<anonymous> (/usr/app/node_modules/superagent/src/node/unzip.js:54:12)


at Unzip.emit (node:events:518:28)


at endReadableNT (node:internal/streams/readable:1698:12)


at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {


body: { error: { status: 401, message: 'No token provided' } },


headers: {


'www-authenticate': 'Bearer realm="spotify"',


'access-control-allow-origin': '*',


'access-control-allow-headers': 'Accept, App-Platform, Authorization, Content-Type, Origin, Retry-After, Spotify-App-Version, X-Cloud-Trace-Context, client-token, content-access-token',


'access-control-allow-methods': 'GET, POST, OPTIONS, PUT, DELETE, PATCH',


'access-control-allow-credentials': 'true',


'access-control-max-age': '604800',


'content-type': 'application/json',


'content-encoding': 'gzip',


'strict-transport-security': 'max-age=31536000',


'x-content-type-options': 'nosniff',


date: 'Sat, 17 May 2025 17:53:32 GMT',


server: 'envoy',


via: 'HTTP/2 edgeproxy, 1.1 google',


'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000',


connection: 'close',


'transfer-encoding': 'chunked'


},


statusCode: 401


}




Node.js v22.14.0

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Runtime I'm running Muse:

  • [ ] Directly from the cloned repository
  • [x] Inside a Docker container
  • [ ] Something else (please elaborate)

Versions

  • Muse: Latest - 2.11.1
  • Docker (if applicable): 4.40.0
  • OS: Win 11, using WSL
  • Node.js: (if running outside the Docker container)
  • ffmpeg: (if running outside the Docker container, 4.1 or later is required)

Iota147 avatar May 17 '25 18:05 Iota147

I don't know anything but have u tried using ghcr.io/museofficial/muse:pr-1256? Worked to fix my playing issues, although I didn't have any errors or anything in console... It just wouldn't play any Spotify songs.

lukegoboom1 avatar May 22 '25 02:05 lukegoboom1

"Details: No token provided." Are you sure you correctly set env?

CrooLyyCheck avatar May 26 '25 16:05 CrooLyyCheck