Spotify Error

Hello, we have had the problem for some time that the bot wants to connect to Spotify. However, we have not activated it anywhere and do not need it. We don't know where the error is coming from. We create our player as follows:
client.moonlink = new Manager({
nodes: config.lavalink.nodes,
sendPayload: (guildID: Snowflake, payload: any) => {
const guild = client.guilds.cache.get(guildID);
if (guild) guild.shard.send(JSON.parse(payload));
},
options: {},
});
client.moonlink = new Manager({
nodes: config.lavalink.nodes,
sendPayload: (guildID: Snowflake, payload: any) => {
const guild = client.guilds.cache.get(guildID);
if (guild) guild.shard.send(JSON.parse(payload));
},
options: {},
});
This is the error we get:
Spotify token error: 400 Bad Request - {"totpVerExpired":"error","totpValidUntil":"2025-07-07T09: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"}}}
Spotify token error: 400 Bad Request - {"totpVerExpired":"error","totpValidUntil":"2025-07-07T09: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"}}}
3 Replies
1Lucas1.apk
1Lucas1.apk•2mo ago
put in the options disableNativeSource: true
BastiGameツ
BastiGameツOP•2mo ago
I just found that out too. But wouldn't it be better to always have it disabled by default, since it confuses people when errors suddenly appear.
1Lucas1.apk
1Lucas1.apk•2mo ago
When I wrote the code, these ways of obtaining the token anonymously were stable, then a few days ago they removed this endpoint. And we are looking at a more practical way and waiting for them to stabilize.

Did you find this page helpful?