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

AioHTTPSession.get() takes 1 positional argument but 2 were given #50

Closed to175 closed 11 months ago

to175 commented 11 months ago

Hi,

Trying for the first time the packages. Python 3.9 I have installed the requirements.

site-packages\threads_api\src\threads_api.py", line 997, in __download async with self._auth_session.get(url) as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: AioHTTPSession.get() takes 1 positional argument but 2 were given ERROR:Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x000001D432D9BF10>

Issue occured because I wrote image_path="logo.jpg" instead of image_path="logo.png". So here error must be caught properly... Upgrade needed :)

Danie1 commented 11 months ago

Hey, thanks for reporting the issue. This is indeed a work in progress, and I have managed thus far to invest my time every day since the release in this project.

I am fixing the mimetype issue in this PR: https://github.com/Danie1/threads-api/pull/52

Danie1 commented 11 months ago

Please re-open with additional info if still reproduces after version v1.1.13 (https://github.com/Danie1/threads-api/releases/tag/v1.1.13). It contains improvements in this area / the solution, so at the very least it will be easier to troubleshoot if a different issue appears.