TidalAPI
TidalAPI copied to clipboard
401 'Client not found'
Hello,
I am trying to get album info from tidal but I get the error Error: {"status":401,"subStatus":8003,"userMessage":"Client not found"}
Does anyone know how to fix it?
I'm also getting this error. Any news?
Same - here's my code, which follows the README. Looks like X-Tidal-Token is no longer a valid key in the request header(?) but I see an authorization which gives a Bearer Token value.
Wasn't sure whether to include "Bearer" in the token, as it seems like Fiddler now uses a different auth key / value than mentioned in the README:
const express = require("express");
const app = express();
const port = 3000;
var TidalAPI = require("tidalapi");
var api = new TidalAPI({
username: "[MY_USERNAME]",
password: "[MY_PASSWORD]",
token:
"Bearer [MY_BEARER_TOKEN]",
quality: "HIGH",
});
app.get("/", (req, res) => {
api.search({ type: "artists", query: "Interpol", limit: 1 }, function (data) {
console.log(data.artists);
res.send(data.artists);
});
});
app.listen(port, () => {
console.log(`Example app listening on port ${port}`);
});
yea you gotta add an Authorization header now
value should be Bearer + your new and pretty long token
You can get the new token by doing pretty much the same as before
EDIT: what im tryna say is that the change needs to be made inside the tidalAPI package
there is no more login but instead we have to send the Authorization header on every api call