r0ld3x / terabox-downloader-bot

A telegram bot written in Python for downloading files from Terabox using the Terabox API
66 stars 123 forks source link

error #7

Closed devilxsam closed 7 months ago

devilxsam commented 7 months ago

Task exception was never retrieved future: <Task finished name='Task-26' coro=<handle_message() done, defined at /app/./main.py:139> exception=KeyError('dlink')> Traceback (most recent call last): File "/app/./main.py", line 202, in handle_message data = get_data(url) ^^^^^^^^^^^^^ File "/app/terabox.py", line 167, in get_data response = r.head(r_j["list"][0]["dlink"], headers=headersList)


KeyError: 'dlink'
r0ld3x commented 7 months ago

Terabox api is not sending link. The reason could be as follows:

  1. You are using free account cookies instead of premium account cookies.
  2. The link you are passing maybe that link have some problems like its private or somethinng else.