Skip to content
This repository has been archived by the owner on Oct 1, 2023. It is now read-only.

[BUG] login InstagrapiSession #47

Closed
MsLolita opened this issue Jul 17, 2023 · 2 comments
Closed

[BUG] login InstagrapiSession #47

MsLolita opened this issue Jul 17, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@MsLolita
Copy link

Some bug when handling login response with InstagrapiSession.
[ERROR] list index out of range
Traceback (most recent call last):
File "D:\user\prog\threads_bot\v2\main.py", line 22, in
asyncio.run(main())
File "C:\Users\Bou\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Users\Bou\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Bou\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "D:\user\prog\threads_bot\v2\main.py", line 18, in main
await bot.start()
File "D:\user\prog\threads_bot\v2\threads_manager\timeline_manager.py", line 34, in start
await self.login(self.username, self.password, cached_token_path="data\.session")
File "D:\user\prog\threads_bot\v2\venv\Lib\site-packages\threads_api\src\threads_api.py", line 257, in login
token = self.instagrapi_client.private.headers['Authorization'].split("Bearer IGT:2:")[1]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

Process finished with exit code 1

@Danie1
Copy link
Owner

Danie1 commented Jul 17, 2023

I am fixing this at the moment. Thanks for reporting.

@Danie1 Danie1 added the bug Something isn't working label Jul 17, 2023
@Danie1
Copy link
Owner

Danie1 commented Jul 17, 2023

This is fixed in https://github.com/Danie1/threads-api/releases/tag/v1.1.12

Thanks for reporting @MsLolita

Please open a new issue if you encounter any additional problems.

@Danie1 Danie1 closed this as completed Jul 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants