Giter Club home page Giter Club logo

terabox-downloader-bot's Issues

error

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'

Error

Traceback (most recent call last):
File "/home/epiksam14/terabox-downloader-bot/main.py", line 9, in
from terabox import get_data, init_download
File "/home/epiksam14/terabox-downloader-bot/terabox.py", line 6, in
from tools import extract_surl_from_url, get_formatted_size
File "/home/epiksam14/terabox-downloader-bot/tools.py", line 301, in
async def is_user_on_chat(bot: Client, chat_id: int, user_id: int) -> ChatMember | bool:
TypeError: unsupported operand type(s) for |: 'type' and 'type'

error ๐Ÿ˜”

File "C:\Users\hritu\OneDrive\Documents\GitHub\TeraBox3\main.py", line 9, in
from terabox import get_data, init_download
File "C:\Users\hritu\OneDrive\Documents\GitHub\TeraBox3\terabox.py", line 97, in
driver = webdriver.Chrome(keep_alive=chrome_driver_path, options=chrome_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hritu\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\selenium\webdriver\chrome\webdriver.py", line 45, in init
super().init(
File "C:\Users\hritu\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\selenium\webdriver\chromium\webdriver.py", line 61, in init
super().init(command_executor=executor, options=options)
File "C:\Users\hritu\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\selenium\webdriver\remote\webdriver.py", line 209, in init
self.start_session(capabilities)
File "C:\Users\hritu\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\selenium\webdriver\remote\webdriver.py", line 293, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hritu\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\selenium\webdriver\remote\webdriver.py", line 348, in execute
self.error_handler.check_response(response)
File "C:\Users\hritu\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot create default profile directory

How to solve this error

During handling of the above exception, another exception occurred:
2024-02-17T07:42:18.151319+00:00 app[worker.1]:
2024-02-17T07:42:18.151319+00:00 app[worker.1]: Traceback (most recent call last):
2024-02-17T07:42:18.151319+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.12/site-packages/telethon/client/updates.py", line 561, in _dispatch_update
2024-02-17T07:42:18.151320+00:00 app[worker.1]: await builder.resolve(self)
2024-02-17T07:42:18.151320+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.12/site-packages/telethon/events/common.py", line 99, in resolve
2024-02-17T07:42:18.151320+00:00 app[worker.1]: await self._resolve(client)
2024-02-17T07:42:18.151320+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.12/site-packages/telethon/events/newmessage.py", line 94, in _resolve
2024-02-17T07:42:18.151320+00:00 app[worker.1]: self.from_users = await _into_id_set(client, self.from_users)
2024-02-17T07:42:18.151321+00:00 app[worker.1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-02-17T07:42:18.151321+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.12/site-packages/telethon/events/common.py", line 33, in _into_id_set
2024-02-17T07:42:18.151321+00:00 app[worker.1]: chat = await client.get_input_entity(chat)
2024-02-17T07:42:18.151321+00:00 app[worker.1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-02-17T07:42:18.151322+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.12/site-packages/telethon/client/users.py", line 439, in get_input_entity
2024-02-17T07:42:18.151322+00:00 app[worker.1]: await self._get_entity_from_string(peer))
2024-02-17T07:42:18.151322+00:00 app[worker.1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-02-17T07:42:18.151322+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.12/site-packages/telethon/client/users.py", line 536, in _get_entity_from_string
2024-02-17T07:42:18.151323+00:00 app[worker.1]: raise ValueError('Cannot get entity by phone number as a '
2024-02-17T07:42:18.151324+00:00 app[worker.1]: ValueError: Cannot get entity by phone number as a bot (try using integer IDs, not strings)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.