Danie1 / threads-api

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

image(image_path = wrong url) upload bug #49

Closed vnetb closed 1 year ago

vnetb commented 1 year ago
/opt/Threads/venv/lib/python3.9/site-packages/threads_api/src/threads_api.py:1084: RuntimeWarning: coroutine 'ThreadsAPI.post.<locals>.__is_valid_url' was never awaited
  if not __is_valid_url(image_path):
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

may be if not await __is_valid_url(image_path):

Danie1 commented 1 year ago

Hey @vnetb , thanks for reporting the issue. I will fix this in the PR: https://github.com/Danie1/threads-api/pull/52

Danie1 commented 1 year 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.