Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

401 'Client not found' #48

Open
Elpersonn opened this issue Feb 19, 2022 · 3 comments
Open

401 'Client not found' #48

Elpersonn opened this issue Feb 19, 2022 · 3 comments

Comments

@Elpersonn
Copy link

Elpersonn commented Feb 19, 2022

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?

@zeitmeister
Copy link

I'm also getting this error. Any news?

@heaversm
Copy link

heaversm commented Nov 8, 2022

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

@ShuriZma
Copy link

ShuriZma commented Dec 30, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants