Comments (6)
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.
Oops that's one issue. I'll fix.
from ytdlbot.
It should be fixed. Pull the latest image and try again.
from ytdlbot.
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.
Это должно быть исправлено. Загрузите последний образ и повторите попытку.
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.
what about now?
from ytdlbot.
Related Issues (20)
- Hey Brother One Request ! HOT 2
- Can You Help Me ! HOT 1
- Hey Can You Upgrade The Code !
- Feature Update Request HOT 7
- telegram video url can't reback a right video HOT 4
- Pls Some Update
- How To Setup HOT 3
- Hiw i will fix HOT 1
- Database.. HOT 1
- Pterodactyl eggs
- issue HOT 2
- Download failed!❌ HOT 1
- ytdl entered RUNNING state, process has stayed up for > than 30 seconds (startsecs) HOT 1
- fatal: not a git repository (or any of the parent directories): .git HOT 4
- /ping HOT 1
- Support for /about and /help commands HOT 1
- Error Download HOT 2
- Fix bugs and add some features HOT 3
- how can i download 4k youtube video via official bot? HOT 5
- add login feature pls HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ytdlbot.