Comments (4)
Should be fixed now
from yt-dlp-bot.
Comment out this block
Lines 28 to 45 in 26c464c
from yt-dlp-bot.
I try and got error when create task
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in call
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/gzip.py", line 24, in call
await responder(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/gzip.py", line 44, in call
await self.app(scope, receive, self.send_with_gzip)
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 758, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 778, in app
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 299, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 79, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 74, in app
response = await func(request)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 299, in app
raise e
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 294, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/api/api/api_v1/endpoints/tasks.py", line 45, in create_task
return await TaskService.create_task_non_db(task=task, publisher=pb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/api/core/services/task.py", line 69, in create_task_non_db
payload = InbMediaPayload(
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydantic/main.py", line 171, in init
self.pydantic_validator.validate_python(data, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 5 validation errors for InbMediaPayload
from_chat_id
Field required [type=missing, input_value={'id': UUID('f0b1b133-8f2...'save_to_storage': True}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.6/v/missing
from_chat_type
Field required [type=missing, input_value={'id': UUID('f0b1b133-8f2...'save_to_storage': True}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.6/v/missing
from_user_id
Field required [type=missing, input_value={'id': UUID('f0b1b133-8f2...'save_to_storage': True}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.6/v/missing
message_id
Field required [type=missing, input_value={'id': UUID('f0b1b133-8f2...'save_to_storage': True}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.6/v/missing
ack_message_id
Field required [type=missing, input_value={'id': UUID('f0b1b133-8f2...'save_to_storage': True}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.6/v/missing
from yt-dlp-bot.
I added default value none in class InbMediaPayload it's worked
class InbMediaPayload(RealBaseModel):
"""RabbitMQ inbound media payload from Telegram Bot or API service."""
id: uuid.UUID | None = None
- from_chat_id: StrictInt | None
- from_chat_type: TelegramChatType | None
- from_user_id: StrictInt | None
- message_id: StrictInt | None
- ack_message_id: StrictInt | None
+ from_chat_id: StrictInt | None = None
+ from_chat_type: TelegramChatType | None = None
+ from_user_id: StrictInt | None = None
+ message_id: StrictInt | None = None
+ ack_message_id: StrictInt | None = None
url: StrictStr
original_url: StrictStr
source: TaskSource
and I found bug when call delete task task has deleted but yt_worker still downloading
test url : https://www.youtube.com/watch?v=jfKfPfyJRdk
from yt-dlp-bot.
Related Issues (20)
- could add "image" option to the "download_media_type" parameter?
- Another bot in same server
- [TIKTOK] Requested format is not available. Use --list-formats for a list of available formats
- Is it possbile to use without docker ? HOT 1
- Build base image error HOT 2
- Sanitize Title
- How to rebuild? HOT 2
- Why is there no build context for base-image? HOT 2
- How to start bot HOT 1
- can't running the bot HOT 2
- Error building docker image HOT 1
- Why pyrogram? HOT 2
- download youtube shows "Unknow command" HOT 2
- Waiting to be reachable HOT 2
- yt-dlp is only downloading the first video from the playlist HOT 1
- How to add %(upload_date)s %(channel)s to the video description?
- Unable to Fetch
- ERROR: No matching distribution found for tgcrypto-pyrofork
- Worker container does not use user.py HOT 1
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 yt-dlp-bot.