subzeroid / instagrapi

🔥 The fastest and powerful Python library for Instagram Private API 2024
https://hikerapi.com/p/bkXQlaVe
MIT License
4.38k stars 686 forks source link

[BUG]Lamadava Service: Too Many Redirects/Instagram Server Error/No Free Accounts #831

Closed dzbao closed 1 year ago

dzbao commented 2 years ago

When I use the Lamadava Service (v1/user/by/id) today, it does not work with the error: Too many redirects.

And when I try the api online at https://api.lamadava.com/docs#/, it shows the same info:

Snipaste_2022-08-06_12-08-52

I've tried to change the api.lamadava.com to api.instagrapi.com but it still does not work.

Could U help me with it? Thank U!

dzbao commented 2 years ago

The service works well in last 7 days. And I believe I have used for around 60,000 requests which is less than 100, 000 requests/month.

dzbao commented 2 years ago

Besides, when I try the api v1/user/by/username, there's another problem: image Maybe this can help you to fix the bug~

dzbao commented 2 years ago

It works now. It seems like that waiting for some hours can handle this problem. Anyway, thanks for your service~

dzbao commented 2 years ago

Sorry for bothering you, but My service dose not work now. I check the server for the script and I found nearly every request shows that: Too Many Redirects. And several of them shows that Instagram Server Error. I try to use different procy and online 'try it out', it still does not work. Could u help me? Thanks!

Here's my code:

def getUserFollowing(userID):
    cnt = 0
    while cnt < 3:
        headers = {
            'accept': 'application/json',
            'x-access-key': 'xxxxxx', # My Lamadava Access Key
        }

        params = {
            'user_id': userID,
            'amount': '0'
        }
        req = requests.get('https://api.lamadava.com/v1/user/following', params=params, headers=headers)
        if req.status_code == 200:
            if type(json.loads(req.text)) == type({}):
                print("[Get-User-Following-INFO]" + json.loads(req.text)['exc_type'])
                return None
            else:
                return json.loads(req.text)
        else:
            cnt += 1
    return None
dzbao commented 2 years ago

Now I receive a new error info: No free accounts. I want to know that this is some problem of my own Lamadava account or it is caused by your service TAT. If it is caused by your service, I do deeply hope that it can be fixed soon.

dzbao commented 2 years ago

@adw0rd Druing last 3 days, I find that the problem usually happened between 00:00 (UTC) to 06:00 (UTC). Although there's enough time for me to get data in a day. But it still cause some problem and make meaningless bill cost for Lamadava. I'll appreciate it that you'll reply soon. Thanks.

adw0rd commented 2 years ago

@SoonWhy this occurs when instagram massively bans accounts, and at this time I'm sleeping and I can't react. I will try to fix this problem this month