Spotify Error Just Started Today

Spotify token error: 400 Bad Request - {"totpVerExpired":"error","totpValidUntil":"2025-07-02T12:00:00.000Z","error":{"code":400,"message":"Unauthorized request","extra":{"_notes":"Usage of this endpoint is not permitted under the Spotify Developer Terms and Developer Policy, and applicable law"}}}
2025-06-30 13:54:49 [ERROR] unhandledRejection: Body is unusable: Body has already been read
TypeError: Body is unusable: Body has already been read
at consumeBody (node:internal/deps/undici/undici:6225:15)
at _Response.json (node:internal/deps/undici/undici:6180:18)
at Spotify.initTokens (/root/dev/dq/DeepQuasar/node_modules/moonlink.js/dist/src/sources/Spotify.js:57:40)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
TypeError: Body is unusable: Body has already been read
at consumeBody (node:internal/deps/undici/undici:6225:15)
at _Response.json (node:internal/deps/undici/undici:6180:18)
at Spotify.initTokens (/root/dev/dq/DeepQuasar/node_modules/moonlink.js/dist/src/sources/Spotify.js:57:40)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
2025-06-30 13:54:49 [ERROR] Unhandled promise rejection: Body is unusable: Body has already been read
TypeError: Body is unusable: Body has already been read
at consumeBody (node:internal/deps/undici/undici:6225:15)
at _Response.json (node:internal/deps/undici/undici:6180:18)
at Spotify.initTokens (/root/dev/dq/DeepQuasar/node_modules/moonlink.js/dist/src/sources/Spotify.js:57:40)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
Spotify token error: 400 Bad Request - {"totpVerExpired":"error","totpValidUntil":"2025-07-02T12:00:00.000Z","error":{"code":400,"message":"Unauthorized request","extra":{"_notes":"Usage of this endpoint is not permitted under the Spotify Developer Terms and Developer Policy, and applicable law"}}}
2025-06-30 13:54:49 [ERROR] unhandledRejection: Body is unusable: Body has already been read
TypeError: Body is unusable: Body has already been read
at consumeBody (node:internal/deps/undici/undici:6225:15)
at _Response.json (node:internal/deps/undici/undici:6180:18)
at Spotify.initTokens (/root/dev/dq/DeepQuasar/node_modules/moonlink.js/dist/src/sources/Spotify.js:57:40)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
TypeError: Body is unusable: Body has already been read
at consumeBody (node:internal/deps/undici/undici:6225:15)
at _Response.json (node:internal/deps/undici/undici:6180:18)
at Spotify.initTokens (/root/dev/dq/DeepQuasar/node_modules/moonlink.js/dist/src/sources/Spotify.js:57:40)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
2025-06-30 13:54:49 [ERROR] Unhandled promise rejection: Body is unusable: Body has already been read
TypeError: Body is unusable: Body has already been read
at consumeBody (node:internal/deps/undici/undici:6225:15)
at _Response.json (node:internal/deps/undici/undici:6180:18)
at Spotify.initTokens (/root/dev/dq/DeepQuasar/node_modules/moonlink.js/dist/src/sources/Spotify.js:57:40)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
Any ideas, something on my end?
Solution:
put in the options disableNativeSource: true...
Jump to solution
10 Replies
Toil
ToilOP•4mo ago
I already refreshed my developer API token.
1Lucas1.apk
1Lucas1.apk•4mo ago
What version of moonlink is he currently on?
Toil
ToilOP•4mo ago
Latest 4.6.18
Solution
1Lucas1.apk
1Lucas1.apk•4mo ago
put in the options disableNativeSource: true
Toil
ToilOP•4mo ago
uno momento
MEE6
MEE6•4mo ago
GG @Toil, you just advanced to level 1!
Toil
ToilOP•4mo ago
disableNativeSources: true worked to get rid of that error. Do you want me to re-enable spotify on my lavalink and see if that works?
1Lucas1.apk
1Lucas1.apk•4mo ago
This only disables within the package that has an internal way to retrieve Spotify and Deezer links, but for a few days now they have been changing some things, and breaking this internal code, I'm waiting for it to stabilize and have a good way to fix this code, until then, just disabling these native sources, with lavasrc which is the lavalink plugin, it works fine if you want to use it.
1Lucas1.apk
1Lucas1.apk•4mo ago
have a good day :)
Toil
ToilOP•4mo ago
Thanks again Lucas!

Did you find this page helpful?