Giter VIP home page Giter VIP logo

Comments (6)

BennyThink avatar BennyThink commented on August 22, 2024 1

For ping, your container name must be ytdlbot_ytdl_1

For subscribe, it appears your database column is incorrect. You can alter it, or if there's no important data you can drop it and restart ytdl container.

SQL command is here: https://github.com/tgbot-collection/ytdlbot/blob/master/ytdlbot/db.py#L154

from ytdlbot.

BennyThink avatar BennyThink commented on August 22, 2024 1

Oops that's one issue. I'll fix.

from ytdlbot.

BennyThink avatar BennyThink commented on August 22, 2024 1

It should be fixed. Pull the latest image and try again.

from ytdlbot.

apa4h avatar apa4h commented on August 22, 2024

For ping, your container name must be ytdlbot_ytdl_1

For subscribe, it appears your database column is incorrect. You can alter it, or if there's no important data you can drop it and restart ytdl container.

SQL command is here: https://github.com/tgbot-collection/ytdlbot/blob/master/ytdlbot/db.py#L154

Hi!

Thank you so much for your help!
Everything was solved with the database, but ping did not work, the log with an error at the moment:

ytdl_1 | Traceback (most recent call last): ytdl_1 | File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 910, in json ytdl_1 | return complexjson.loads(self.text, **kwargs) ytdl_1 | File "/usr/local/lib/python3.9/json/__init__.py", line 346, in loads ytdl_1 | return _default_decoder.decode(s) ytdl_1 | File "/usr/local/lib/python3.9/json/decoder.py", line 337, in decode ytdl_1 | obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ytdl_1 | File "/usr/local/lib/python3.9/json/decoder.py", line 355, in raw_decode ytdl_1 | raise JSONDecodeError("Expecting value", s, err.value) from None ytdl_1 | json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ytdl_1 | ytdl_1 | During handling of the above exception, another exception occurred: ytdl_1 | ytdl_1 | Traceback (most recent call last): ytdl_1 | File "/usr/local/lib/python3.9/site-packages/pyrogram/dispatcher.py", line 224, in handler_worker ytdl_1 | await self.loop.run_in_executor( ytdl_1 | File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run ytdl_1 | result = self.fn(*self.args, **self.kwargs) ytdl_1 | File "/ytdlbot/ytdlbot/ytdl_bot.py", line 164, in ping_handler ytdl_1 | stats = bot_text.ping_worker() ytdl_1 | File "/ytdlbot/ytdlbot/constant.py", line 134, in ping_worker ytdl_1 | workers = InfluxDB().extract_dashboard_data() ytdl_1 | File "/ytdlbot/ytdlbot/db.py", line 241, in extract_dashboard_data ytdl_1 | self.data = self.get_worker_data() ytdl_1 | File "/ytdlbot/ytdlbot/db.py", line 238, in get_worker_data ytdl_1 | return requests.get("https://celery.dmesg.app/dashboard?json=1", headers=headers).json() ytdl_1 | File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 917, in json ytdl_1 | raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) ytdl_1 | requests.exceptions.JSONDecodeError: [Errno Expecting value] Access denied: 0

upd:

checked that the container name is ytdlbot_ytdl_1 but that didn't solve the problem

from ytdlbot.

apa4h avatar apa4h commented on August 22, 2024

Это должно быть исправлено. Загрузите последний образ и повторите попытку.

Now the next error:

ytdl_1 | [2022-04-15 15:58:32 dispatcher.py:235 E] Telegram says: [400 MEDIA_CAPTION_TOO_LONG] - The media caption is longer than 1024 characters (caused by "messages.SendMedia") ytdl_1 | Traceback (most recent call last): ytdl_1 | File "/usr/local/lib/python3.9/site-packages/pyrogram/dispatcher.py", line 224, in handler_worker ytdl_1 | await self.loop.run_in_executor( ytdl_1 | File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run ytdl_1 | result = self.fn(*self.args, **self.kwargs) ytdl_1 | File "/ytdlbot/ytdlbot/ytdl_bot.py", line 165, in ping_handler ytdl_1 | client.send_document(chat_id, Redis().generate_file(), caption=f"{bot_info}\n\n{stats}") ytdl_1 | File "/usr/local/lib/python3.9/site-packages/pyrogram/sync.py", line 78, in async_to_sync_wrap ytdl_1 | return asyncio.run_coroutine_threadsafe(coroutine, main_loop).result() ytdl_1 | File "/usr/local/lib/python3.9/concurrent/futures/_base.py", line 446, in result ytdl_1 | return self.__get_result() ytdl_1 | File "/usr/local/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result ytdl_1 | raise self._exception ytdl_1 | File "/usr/local/lib/python3.9/site-packages/pyrogram/methods/messages/send_document.py", line 193, in send_document ytdl_1 | r = await self.send( ytdl_1 | File "/usr/local/lib/python3.9/site-packages/pyrogram/methods/advanced/send.py", line 77, in send ytdl_1 | r = await self.session.send( ytdl_1 | File "/usr/local/lib/python3.9/site-packages/pyrogram/session/session.py", line 362, in send ytdl_1 | return await self._send(data, timeout=timeout) ytdl_1 | File "/usr/local/lib/python3.9/site-packages/pyrogram/session/session.py", line 332, in _send ytdl_1 | RPCError.raise_it(result, type(data)) ytdl_1 | File "/usr/local/lib/python3.9/site-packages/pyrogram/errors/rpc_error.py", line 91, in raise_it ytdl_1 | raise getattr( ytdl_1 | pyrogram.errors.exceptions.bad_request_400.MediaCaptionTooLong: Telegram says: [400 MEDIA_CAPTION_TOO_LONG] - The media caption is longer than 1024 characters (caused by "messages.SendMedia")

from ytdlbot.

BennyThink avatar BennyThink commented on August 22, 2024

what about now?

from ytdlbot.

Related Issues (20)

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.