TidalAPI icon indicating copy to clipboard operation
TidalAPI copied to clipboard

401 'Client not found'

Open Elpersonn opened this issue 3 years ago • 3 comments

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?

Elpersonn avatar Feb 19 '22 19:02 Elpersonn

I'm also getting this error. Any news?

zeitmeister avatar Mar 10 '22 22:03 zeitmeister

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}`);
});

heaversm avatar Nov 08 '22 14:11 heaversm

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

ShuriZma avatar Dec 30 '22 22:12 ShuriZma