Giter Site home page Giter Site logo

Comments (4)

tropicoo avatar tropicoo commented on May 29, 2024 1

Should be fixed now

from yt-dlp-bot.

tropicoo avatar tropicoo commented on May 29, 2024

Comment out this block

bot:
container_name: yt_bot
build:
context: .
dockerfile: app_bot/Dockerfile
env_file:
- envs/.env_common
- envs/.env_bot
restart: unless-stopped
command: >
bash -c "python start.py && python main.py"
depends_on:
- postgres
- rabbitmq
- worker
- api
volumes:
- "shared-tmpfs:/tmp/download_tmpfs"

from yt-dlp-bot.

armm29393 avatar armm29393 commented on May 29, 2024

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.

armm29393 avatar armm29393 commented on May 29, 2024

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)

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.