aleksey-saenko / MusicRecognizer

An Android application for music recognition that uses AudD and ACRCloud services to perform song identification.
GNU General Public License v3.0
316 stars 8 forks source link

Own API Key does not work #31

Closed beautiful-orca closed 7 months ago

beautiful-orca commented 7 months ago

Error message "Wrong API token" when using own API Key

I signed up, confirmed email and copied my api_token from https://dashboard.audd.io into Audile v1.1.4 and applied it. I then force quitted the app and started it again (confirming my api key is present in settings). I then tried to recognize a song, but it loads very long and gives this error. I even resetted the token and used the new one. The token "test" works in the limit of 10 requests.

aleksey-saenko commented 7 months ago

Hello, thanks for the reporting. Could you try your token outside of Audile? To do this, replace the part yourToken with a real token and open the link in any browser. https://api.audd.io/?url=https://audd.tech/example.mp3&api_token=yourToken It should look like this https://api.audd.io/?url=https://audd.tech/example.mp3&api_token=7a47f4b...86d0422273

If you see a successful recognition result, it means there is an error somewhere in the Audile; if you see an error like this _"Recognition failed: authorization failed: wrong apitoken", then the problem is in the token itself or somewhere on the AudD side.

beautiful-orca commented 7 months ago

Maybe the key of an account only works when subscribing. I have not found an option to activate a trial period or is the trial just the token "test"? (10 requests is enough for me most of the time though)

{"status":"error","error":{"error_code":900,"error_message":"Recognition failed: 
authorization failed: wrong api_token. Please check if your account is activated on dashboard.audd.io and has either a trial or an active subscription."},
"request_params":{"url":"https://audd.tech/example.mp3","api_token":"1***5"},"request_api_method":"recognize","request_http_method":"GET","see api documentation":"https://docs.audd.io","contact us":"api@audd.io"}
beautiful-orca commented 7 months ago

I now also used their Telegram bot @auddbot to request a token. It requires a phone number as identifier. It then gives you an API token which has an active trial (which works) period of 2 weeks and 300 requests max. After that you have to subscribe. So the "test" token would still be the best long term option for personal use (or use their telegram bot) Screenshot_20231124-134749_Fork Client Screenshot_20231124-134808_Fork Client

aleksey-saenko commented 7 months ago

In general, a token obtained through registration on the site should work as expected. The trial period should work without advance payment. This behavior has been successfully tested previously. However, some users have already reported that their tokens do not work. There is a feeling that the service is blocking certain tokens/users for some reasons, although there are no messages about this in their account. I will send a message to AudD and give you feedback if anything can be figured out.

aleksey-saenko commented 7 months ago

No updates. If a token doesn't work even outside the app, it is best to contact the service support personally.