fansly-downloader icon indicating copy to clipboard operation
fansly-downloader copied to clipboard

API returned unauthorized

Open sashacorosk opened this issue 2 years ago • 6 comments

Hey, firstly thank you for this, it's really a nice tool to use ! I used it several times without issues. I didnt change anything but now I have this message : [11]ERROR | 20:56 || API returned unauthorized. This is most likely because of a wrong authorization token, in the configuration file.

But I cant change the authorization token.

Can you tell me what to do there ? Thank you very much !

sashacorosk avatar Jul 23 '22 18:07 sashacorosk

it's not giving me a new token. Still the same after reseting the config file. I still have the same error message. I'll try manually but I checked it earlier and I couldnt manage to do it

sashacorosk avatar Jul 23 '22 22:07 sashacorosk

it's not giving me a new token.

My bad I just double checked with fansly api, it seems like they've removed the authentication token from the apiv2 requests. They're mainly using api version 3 now and the authentication token is only inside the api version 3 requests (which automatic configurator is not finding). You've to type in apiv3 to find the authentication token manually now.

I will fix all this within the next couple days.

I expected this to happen, you can read about it here: https://github.com/Avnsx/fansly/issues/23

Avnsx avatar Jul 23 '22 22:07 Avnsx

Yeah I read that too. So I tried with "apiv3" but I cant find anything with this search. Am I doing it wrong or it's normal till you fix it ?

sashacorosk avatar Jul 23 '22 22:07 sashacorosk

But I am not sure to understand step 3.. I dont see how I have to "locate a request"

sashacorosk avatar Jul 23 '22 22:07 sashacorosk

But I am not sure to understand step 3.. I dont see how I have to "locate a request"

When you type in "apiv3" where it asks you to in step 2 (on the picture), there'll only be a couple entries in the "names" field. One of them will be account?ids for example and you're supposed to find that one (or any other that is a apiv3 request) and look into the part where it says request headers for that request. In there you'll find the authorization token, once you copy it and paste it into the config.ini file together with your User-Agent (which you can also find in that same request), fansly scraper will work again.

But if you don't understand how to do this, you'll have to wait for me to publish the next update. Which I'll be doing once the repository reaches 200 stars.

Avnsx avatar Jul 23 '22 22:07 Avnsx

It's ok, I find out ! it's because it wasnt looking the same to me than in the screenshot. It's working now ! thank you very much !

sashacorosk avatar Jul 23 '22 22:07 sashacorosk

Fixed in version v0.3.4 You can use the updater, to comfortably upgrade to the new version.

Avnsx avatar Aug 28 '22 21:08 Avnsx