Danie1 / threads-api

Unofficial Python API for Meta's Threads App
https://pypi.org/project/threads-api/
MIT License
108 stars 15 forks source link

.get_user_id_from_username() returns None for valid usernames #40

Open Pattles opened 11 months ago

Pattles commented 11 months ago

It worked yesterday, but something happened between now and then to make it stop working.

I used zuck as the username, but when I did threads_api.get_user_id_from_username('zuck'), it returned None instead of a valid username.

Is this something wrong in my code or a bug?

Danie1 commented 11 months ago

The Instagram (Threads) API has stability issues for some API calls. If you call it 10 times, does it succeed on some/most, or fail on all?

Pattles commented 11 months ago

It seems to fail all 10 times. But I might be mistaken, I started to encounter this problem a few hours ago.

On Sun, Jul 16, 2023 at 13:19 Danie1 @.***> wrote:

The Instagram (Threads) API has stability issues for some API calls. If you call it 10 times, does it succeed on some/most, or fail on all?

— Reply to this email directly, view it on GitHub https://github.com/Danie1/threads-api/issues/40#issuecomment-1637143601, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANWX6ZZ4X34DYTLZK2IQZDDXQQPB3ANCNFSM6AAAAAA2MBPMPA . You are receiving this because you authored the thread.Message ID: @.***>

Danie1 commented 11 months ago

I suggest you set the LOG_LEVEL to DEBUG and re-run your script. The http response printed may give a clue as to why it had failed.

Please share the results and I'll be glad to look into it.