-
Notifications
You must be signed in to change notification settings - Fork 882
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Instagrapi 2.2.1 method cl.direct_send_photo (and tbh any upload/send photo/video method) returns "login_required" error and forces IG to invalidate session.
To Reproduce
cl = Client()
cl.login_by_sessionid(<sessionId value from browser>)
image_path = os.path.join('images', 'image.jpg')
cl.direct_send_photo(path=Path(image_path), thread_ids=[thread.id])
Traceback
e = {LoginRequired} LoginRequired('login_required') args = {tuple: 1} ('login_required',) code = {NoneType} None error_body = {str} 'Please log back in.' error_title = {str} "You've Been Logged Out" logout_expectedness = {str} 'session_expired' logout_reason = {int} 3 message = {str} 'login_required' response = {Response} <Response [403]> status = {str} 'fail'
Desktop (please complete the following information):
- OS: [e.g. MacOS 14.2.1]
- Python version [e.g. 3.11]
- instagrapi version [e.g. 2.2.1]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working