0xVasconcelos / TidalAPI

Unofficial Node.js TIDAL API
MIT License
209 stars 45 forks source link

'Ooops, an unexpected error occurred' #22

Open bayrock opened 8 years ago

bayrock commented 8 years ago
\node_modules\tidalapi\lib\client.js:106
        throw new Error(data)
        ^
Error: {"status":500,"subStatus":999,"userMessage":"Ooops, an unexpected error occurred. We'll try to fix this asap!"}

What causes this issue, and is there anything I can do about it? Thanks.

jonaaa20 commented 8 years ago

Having this problem too...

0xVasconcelos commented 7 years ago

Update the TIDAL token.

okonek commented 7 years ago

me too

jbschooley commented 7 years ago

Download an android emulator and get the token with that

On Sep 3, 2017 9:47 AM, "Jan Okoński" notifications@github.com wrote:

me too

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lucaslg26/TidalAPI/issues/22#issuecomment-326806040, or mute the thread https://github.com/notifications/unsubscribe-auth/AEHGPDl8AewlB-2OhJ2z0lUdAuL4uE9Eks5seq3bgaJpZM4J75VC .

okonek commented 7 years ago

How to get token with emulator?

jbschooley commented 7 years ago

Enable external access in fiddler then use Drony to force all traffic on the emulator through fiddler

On Sep 3, 2017 2:35 PM, "Jan Okoński" notifications@github.com wrote:

How to get token with emulator?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lucaslg26/TidalAPI/issues/22#issuecomment-326822762, or mute the thread https://github.com/notifications/unsubscribe-auth/AEHGPL8L6Dki7qkLj0c2HUW6NrhSig1Yks5sevFYgaJpZM4J75VC .

okonek commented 7 years ago

Ok I actually copied it from Pythons tidal api and it works.

Kladdkaka commented 7 years ago

@bayrock @jonaaa20 @lucaslg26 @okonek @jbschooley

I found a solution, I assume you guys are using the Android token "kgsOOmYk3zShYrNP", I had the same problem, but I tried to change some stuff.

Apparently, for the android token, you need to set "clientUniqueKey" in the form, when you log in. The funny thing is, it just needs to exist, so you could add a random string to it and it will work :D image

mikemaccana commented 7 years ago

The README now has instructions on getting a token

https://github.com/lucaslg26/TidalAPI#obtain-the-tidal-token-needed-to-use-this-api

Kladdkaka commented 7 years ago

@mikemaccana the problem is not that, the problem is that the package does not work out of box with the android token "kgsOOmYk3zShYrNP", that is extracted from the APK. :)