langgenius/mineru error: mineru.cli.common.aio_do_parse() got multiple values for keyword argument 'backend' #743

Closed
opened 2026-02-16 10:20:21 -05:00 by yindo · 1 comment
Owner

Originally created by @928871247 on GitHub (Oct 22, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues Dify issues & Dify Official Plugins, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.9.1

Plugin version

0.5.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

When using the langgenius/mineru plugin, the following error occurs: Failed to parse file. result: {"error":"Failed to process file: mineru.cli.common.aio_do_parse() got multiple values for keyword argument 'backend'"}
Image·

✔️ Error log

2025-10-23 08:26:21.925 | ERROR    | mineru.cli.fast_api:parse_pdf:249 - mineru.cli.common.aio_do_parse() got multiple values for keyword argument 'backend'
Traceback (most recent call last):

  File "/usr/local/bin/mineru-api", line 7, in <module>
    sys.exit(main())
    │   │    └ <Command main>
    │   └ <built-in function exit>
    └ <module 'sys' (built-in)>
  File "/usr/local/lib/python3.12/dist-packages/click/core.py", line 1442, in __call__
    return self.main(*args, **kwargs)
           │    │     │       └ {}
           │    │     └ ()
           │    └ <function Command.main at 0x7ff82ca4f6a0>
           └ <Command main>
  File "/usr/local/lib/python3.12/dist-packages/click/core.py", line 1363, in main
    rv = self.invoke(ctx)
INFO:     172.16.234.130:52536 - "POST /file_parse HTTP/1.1" 500 Internal Server Error
         │    │      └ <click.core.Context object at 0x7ff82d5c4710>
         │    └ <function Command.invoke at 0x7ff82ca4f380>
         └ <Command main>
  File "/usr/local/lib/python3.12/dist-packages/click/core.py", line 1226, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           │   │      │    │           │   └ {'host': '0.0.0.0', 'port': 8000, 'reload': False}
           │   │      │    │           └ <click.core.Context object at 0x7ff82d5c4710>
           │   │      │    └ <function main at 0x7ff6dcd6d580>
           │   │      └ <Command main>
           │   └ <function Context.invoke at 0x7ff82ca4e5c0>
           └ <click.core.Context object at 0x7ff82d5c4710>
  File "/usr/local/lib/python3.12/dist-packages/click/core.py", line 794, in invoke
    return callback(*args, **kwargs)
           │         │       └ {'host': '0.0.0.0', 'port': 8000, 'reload': False}
           │         └ ()
           └ <function main at 0x7ff6dcd6d580>
  File "/usr/local/lib/python3.12/dist-packages/click/decorators.py", line 34, in new_func
    return f(get_current_context(), *args, **kwargs)
           │ │                       │       └ {'host': '0.0.0.0', 'port': 8000, 'reload': False}
           │ │                       └ ()
           │ └ <function get_current_context at 0x7ff82ca2d080>
           └ <function main at 0x7ff6dcd6d760>
  File "/usr/local/lib/python3.12/dist-packages/mineru/cli/fast_api.py", line 274, in main
    uvicorn.run(
    │       └ <function run at 0x7ff82caa2ac0>
    └ <module 'uvicorn' from '/usr/local/lib/python3.12/dist-packages/uvicorn/__init__.py'>
  File "/usr/local/lib/python3.12/dist-packages/uvicorn/main.py", line 580, in run
    server.run()
    │      └ <function Server.run at 0x7ff82c896660>
    └ <uvicorn.server.Server object at 0x7ff6dcedfce0>
  File "/usr/local/lib/python3.12/dist-packages/uvicorn/server.py", line 67, in run
    return asyncio.run(self.serve(sockets=sockets))
           │       │   │    │             └ None
           │       │   │    └ <function Server.serve at 0x7ff82c896700>
           │       │   └ <uvicorn.server.Server object at 0x7ff6dcedfce0>
           │       └ <function run at 0x7ff82cbe1440>
           └ <module 'asyncio' from '/usr/lib/python3.12/asyncio/__init__.py'>
  File "/usr/lib/python3.12/asyncio/runners.py", line 195, in run
    return runner.run(main)
           │      │   └ <coroutine object Server.serve at 0x7ff6dcd63760>
           │      └ <function Runner.run at 0x7ff82cc568e0>
           └ <asyncio.runners.Runner object at 0x7ff6dd12e210>
  File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           │    │     │                  └ <Task pending name='Task-1' coro=<Server.serve() running at /usr/local/lib/python3.12/dist-packages/uvicorn/server.py:71> wai...
           │    │     └ <cyfunction Loop.run_until_complete at 0x7ff6dcd19080>
           │    └ <uvloop.Loop running=True closed=False debug=False>
           └ <asyncio.runners.Runner object at 0x7ff6dd12e210>
  File "/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py", line 409, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
                   └ <uvicorn.middleware.proxy_headers.ProxyHeadersMiddleware object at 0x7ff6dcef0b90>
  File "/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
    return await self.app(scope, receive, send)
                 │    │   │      │        └ <bound method RequestResponseCycle.send of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcdcb5...
                 │    │   │      └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd...
                 │    │   └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c...
                 │    └ <fastapi.applications.FastAPI object at 0x7ff82d5c60c0>
                 └ <uvicorn.middleware.proxy_headers.ProxyHeadersMiddleware object at 0x7ff6dcef0b90>
  File "/usr/local/lib/python3.12/dist-packages/fastapi/applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
                           │      │        └ <bound method RequestResponseCycle.send of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcdcb5...
                           │      └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd...
                           └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c...
  File "/usr/local/lib/python3.12/dist-packages/starlette/applications.py", line 113, in __call__
    await self.middleware_stack(scope, receive, send)
          │    │                │      │        └ <bound method RequestResponseCycle.send of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcdcb5...
          │    │                │      └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd...
          │    │                └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c...
          │    └ <starlette.middleware.errors.ServerErrorMiddleware object at 0x7ff6dcd21910>
          └ <fastapi.applications.FastAPI object at 0x7ff82d5c60c0>
  File "/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
          │    │   │      │        └ <function ServerErrorMiddleware.__call__.<locals>._send at 0x7ff6dc247ba0>
          │    │   │      └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd...
          │    │   └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c...
          │    └ <starlette.middleware.gzip.GZipMiddleware object at 0x7ff6dcd225d0>
          └ <starlette.middleware.errors.ServerErrorMiddleware object at 0x7ff6dcd21910>
  File "/usr/local/lib/python3.12/dist-packages/starlette/middleware/gzip.py", line 29, in __call__
    await responder(scope, receive, send)
          │         │      │        └ <function ServerErrorMiddleware.__call__.<locals>._send at 0x7ff6dc247ba0>
          │         │      └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd...
          │         └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c...
          └ <starlette.middleware.gzip.GZipResponder object at 0x7ff6dcdcb5f0>
  File "/usr/local/lib/python3.12/dist-packages/starlette/middleware/gzip.py", line 130, in __call__
    await super().__call__(scope, receive, send)
                           │      │        └ <function ServerErrorMiddleware.__call__.<locals>._send at 0x7ff6dc247ba0>
                           │      └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd...
                           └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c...
  File "/usr/local/lib/python3.12/dist-packages/starlette/middleware/gzip.py", line 46, in __call__
    await self.app(scope, receive, self.send_with_compression)
          │    │   │      │        │    └ <function IdentityResponder.send_with_compression at 0x7ff82b910720>
          │    │   │      │        └ <starlette.middleware.gzip.GZipResponder object at 0x7ff6dcdcb5f0>
          │    │   │      └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd...
          │    │   └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c...
          │    └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7ff6dcd22720>
          └ <starlette.middleware.gzip.GZipResponder object at 0x7ff6dcdcb5f0>
  File "/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py", line 63, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
          │                            │    │    │     │      │        └ <bound method IdentityResponder.send_with_compression of <starlette.middleware.gzip.GZipResponder object at 0x7ff6dcdcb5f0>>
          │                            │    │    │     │      └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd...
          │                            │    │    │     └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c...
          │                            │    │    └ <starlette.requests.Request object at 0x7ff6dcdcb620>
          │                            │    └ <fastapi.routing.APIRouter object at 0x7ff6dcedf530>
          │                            └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7ff6dcd22720>
          └ <function wrap_app_handling_exceptions at 0x7ff82ba7ef20>
  File "/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
          │   │      │        └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7ff6dc247b00>
          │   │      └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd...
          │   └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c...
          └ <fastapi.routing.APIRouter object at 0x7ff6dcedf530>
  File "/usr/local/lib/python3.12/dist-packages/starlette/routing.py", line 716, in __call__
    await self.middleware_stack(scope, receive, send)
          │    │                │      │        └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7ff6dc247b00>
          │    │                │      └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd...
          │    │                └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c...
          │    └ <bound method Router.app of <fastapi.routing.APIRouter object at 0x7ff6dcedf530>>
          └ <fastapi.routing.APIRouter object at 0x7ff6dcedf530>
  File "/usr/local/lib/python3.12/dist-packages/starlette/routing.py", line 736, in app
    await route.handle(scope, receive, send)
          │     │      │      │        └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7ff6dc247b00>
          │     │      │      └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd...
          │     │      └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c...
          │     └ <function Route.handle at 0x7ff82bab8400>
          └ APIRoute(path='/file_parse', name='parse_pdf', methods=['POST'])
  File "/usr/local/lib/python3.12/dist-packages/starlette/routing.py", line 290, in handle
    await self.app(scope, receive, send)
          │    │   │      │        └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7ff6dc247b00>
          │    │   │      └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd...
          │    │   └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c...
          │    └ <function request_response.<locals>.app at 0x7ff6dcd6d300>
          └ APIRoute(path='/file_parse', name='parse_pdf', methods=['POST'])
  File "/usr/local/lib/python3.12/dist-packages/starlette/routing.py", line 78, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
          │                            │    │        │      │        └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7ff6dc247b00>
          │                            │    │        │      └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd...
          │                            │    │        └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c...
          │                            │    └ <starlette.requests.Request object at 0x7ff6dcdcbf50>
          │                            └ <function request_response.<locals>.app.<locals>.app at 0x7ff6dc247740>
          └ <function wrap_app_handling_exceptions at 0x7ff82ba7ef20>
  File "/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
          │   │      │        └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7ff6dc247f60>
          │   │      └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd...
          │   └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c...
          └ <function request_response.<locals>.app.<locals>.app at 0x7ff6dc247740>
  File "/usr/local/lib/python3.12/dist-packages/starlette/routing.py", line 75, in app
    response = await f(request)
                     │ └ <starlette.requests.Request object at 0x7ff6dcdcbf50>
                     └ <function get_request_handler.<locals>.app at 0x7ff6dcd6d440>
  File "/usr/local/lib/python3.12/dist-packages/fastapi/routing.py", line 302, in app
    raw_response = await run_endpoint_function(
                         └ <function run_endpoint_function at 0x7ff82ba7eac0>
  File "/usr/local/lib/python3.12/dist-packages/fastapi/routing.py", line 213, in run_endpoint_function
    return await dependant.call(**values)
                 │         │      └ {'files': [UploadFile(filename='CIO_Leadership_Cult_736568_ndx.pdf', size=326961, headers=Headers({'content-disposition': 'fo...
                 │         └ <function parse_pdf at 0x7ff6dcd6d080>
                 └ Dependant(path_params=[], query_params=[], header_params=[], cookie_params=[], body_params=[ModelField(field_info=File(Pydant...
> File "/usr/local/lib/python3.12/dist-packages/mineru/cli/fast_api.py", line 131, in parse_pdf
    await aio_do_parse(
          └ <function aio_do_parse at 0x7ff6dcd6c680>

TypeError: mineru.cli.common.aio_do_parse() got multiple values for keyword argument 'backend'
Originally created by @928871247 on GitHub (Oct 22, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.9.1 ### Plugin version 0.5.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce When using the langgenius/mineru plugin, the following error occurs: Failed to parse file. result: {"error":"Failed to process file: mineru.cli.common.aio_do_parse() got multiple values for keyword argument 'backend'"} <img width="1703" height="407" alt="Image" src="https://github.com/user-attachments/assets/dfe6f740-e5a5-4cf3-83cb-6454bac245db" />· ### ✔️ Error log ``` 2025-10-23 08:26:21.925 | ERROR | mineru.cli.fast_api:parse_pdf:249 - mineru.cli.common.aio_do_parse() got multiple values for keyword argument 'backend' Traceback (most recent call last): File "/usr/local/bin/mineru-api", line 7, in <module> sys.exit(main()) │ │ └ <Command main> │ └ <built-in function exit> └ <module 'sys' (built-in)> File "/usr/local/lib/python3.12/dist-packages/click/core.py", line 1442, in __call__ return self.main(*args, **kwargs) │ │ │ └ {} │ │ └ () │ └ <function Command.main at 0x7ff82ca4f6a0> └ <Command main> File "/usr/local/lib/python3.12/dist-packages/click/core.py", line 1363, in main rv = self.invoke(ctx) INFO: 172.16.234.130:52536 - "POST /file_parse HTTP/1.1" 500 Internal Server Error │ │ └ <click.core.Context object at 0x7ff82d5c4710> │ └ <function Command.invoke at 0x7ff82ca4f380> └ <Command main> File "/usr/local/lib/python3.12/dist-packages/click/core.py", line 1226, in invoke return ctx.invoke(self.callback, **ctx.params) │ │ │ │ │ └ {'host': '0.0.0.0', 'port': 8000, 'reload': False} │ │ │ │ └ <click.core.Context object at 0x7ff82d5c4710> │ │ │ └ <function main at 0x7ff6dcd6d580> │ │ └ <Command main> │ └ <function Context.invoke at 0x7ff82ca4e5c0> └ <click.core.Context object at 0x7ff82d5c4710> File "/usr/local/lib/python3.12/dist-packages/click/core.py", line 794, in invoke return callback(*args, **kwargs) │ │ └ {'host': '0.0.0.0', 'port': 8000, 'reload': False} │ └ () └ <function main at 0x7ff6dcd6d580> File "/usr/local/lib/python3.12/dist-packages/click/decorators.py", line 34, in new_func return f(get_current_context(), *args, **kwargs) │ │ │ └ {'host': '0.0.0.0', 'port': 8000, 'reload': False} │ │ └ () │ └ <function get_current_context at 0x7ff82ca2d080> └ <function main at 0x7ff6dcd6d760> File "/usr/local/lib/python3.12/dist-packages/mineru/cli/fast_api.py", line 274, in main uvicorn.run( │ └ <function run at 0x7ff82caa2ac0> └ <module 'uvicorn' from '/usr/local/lib/python3.12/dist-packages/uvicorn/__init__.py'> File "/usr/local/lib/python3.12/dist-packages/uvicorn/main.py", line 580, in run server.run() │ └ <function Server.run at 0x7ff82c896660> └ <uvicorn.server.Server object at 0x7ff6dcedfce0> File "/usr/local/lib/python3.12/dist-packages/uvicorn/server.py", line 67, in run return asyncio.run(self.serve(sockets=sockets)) │ │ │ │ └ None │ │ │ └ <function Server.serve at 0x7ff82c896700> │ │ └ <uvicorn.server.Server object at 0x7ff6dcedfce0> │ └ <function run at 0x7ff82cbe1440> └ <module 'asyncio' from '/usr/lib/python3.12/asyncio/__init__.py'> File "/usr/lib/python3.12/asyncio/runners.py", line 195, in run return runner.run(main) │ │ └ <coroutine object Server.serve at 0x7ff6dcd63760> │ └ <function Runner.run at 0x7ff82cc568e0> └ <asyncio.runners.Runner object at 0x7ff6dd12e210> File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) │ │ │ └ <Task pending name='Task-1' coro=<Server.serve() running at /usr/local/lib/python3.12/dist-packages/uvicorn/server.py:71> wai... │ │ └ <cyfunction Loop.run_until_complete at 0x7ff6dcd19080> │ └ <uvloop.Loop running=True closed=False debug=False> └ <asyncio.runners.Runner object at 0x7ff6dd12e210> File "/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py", line 409, in run_asgi result = await app( # type: ignore[func-returns-value] └ <uvicorn.middleware.proxy_headers.ProxyHeadersMiddleware object at 0x7ff6dcef0b90> File "/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ return await self.app(scope, receive, send) │ │ │ │ └ <bound method RequestResponseCycle.send of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcdcb5... │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd... │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c... │ └ <fastapi.applications.FastAPI object at 0x7ff82d5c60c0> └ <uvicorn.middleware.proxy_headers.ProxyHeadersMiddleware object at 0x7ff6dcef0b90> File "/usr/local/lib/python3.12/dist-packages/fastapi/applications.py", line 1054, in __call__ await super().__call__(scope, receive, send) │ │ └ <bound method RequestResponseCycle.send of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcdcb5... │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd... └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c... File "/usr/local/lib/python3.12/dist-packages/starlette/applications.py", line 113, in __call__ await self.middleware_stack(scope, receive, send) │ │ │ │ └ <bound method RequestResponseCycle.send of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcdcb5... │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd... │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c... │ └ <starlette.middleware.errors.ServerErrorMiddleware object at 0x7ff6dcd21910> └ <fastapi.applications.FastAPI object at 0x7ff82d5c60c0> File "/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py", line 164, in __call__ await self.app(scope, receive, _send) │ │ │ │ └ <function ServerErrorMiddleware.__call__.<locals>._send at 0x7ff6dc247ba0> │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd... │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c... │ └ <starlette.middleware.gzip.GZipMiddleware object at 0x7ff6dcd225d0> └ <starlette.middleware.errors.ServerErrorMiddleware object at 0x7ff6dcd21910> File "/usr/local/lib/python3.12/dist-packages/starlette/middleware/gzip.py", line 29, in __call__ await responder(scope, receive, send) │ │ │ └ <function ServerErrorMiddleware.__call__.<locals>._send at 0x7ff6dc247ba0> │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd... │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c... └ <starlette.middleware.gzip.GZipResponder object at 0x7ff6dcdcb5f0> File "/usr/local/lib/python3.12/dist-packages/starlette/middleware/gzip.py", line 130, in __call__ await super().__call__(scope, receive, send) │ │ └ <function ServerErrorMiddleware.__call__.<locals>._send at 0x7ff6dc247ba0> │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd... └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c... File "/usr/local/lib/python3.12/dist-packages/starlette/middleware/gzip.py", line 46, in __call__ await self.app(scope, receive, self.send_with_compression) │ │ │ │ │ └ <function IdentityResponder.send_with_compression at 0x7ff82b910720> │ │ │ │ └ <starlette.middleware.gzip.GZipResponder object at 0x7ff6dcdcb5f0> │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd... │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c... │ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7ff6dcd22720> └ <starlette.middleware.gzip.GZipResponder object at 0x7ff6dcdcb5f0> File "/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py", line 63, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) │ │ │ │ │ │ └ <bound method IdentityResponder.send_with_compression of <starlette.middleware.gzip.GZipResponder object at 0x7ff6dcdcb5f0>> │ │ │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd... │ │ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c... │ │ │ └ <starlette.requests.Request object at 0x7ff6dcdcb620> │ │ └ <fastapi.routing.APIRouter object at 0x7ff6dcedf530> │ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7ff6dcd22720> └ <function wrap_app_handling_exceptions at 0x7ff82ba7ef20> File "/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7ff6dc247b00> │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd... │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c... └ <fastapi.routing.APIRouter object at 0x7ff6dcedf530> File "/usr/local/lib/python3.12/dist-packages/starlette/routing.py", line 716, in __call__ await self.middleware_stack(scope, receive, send) │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7ff6dc247b00> │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd... │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c... │ └ <bound method Router.app of <fastapi.routing.APIRouter object at 0x7ff6dcedf530>> └ <fastapi.routing.APIRouter object at 0x7ff6dcedf530> File "/usr/local/lib/python3.12/dist-packages/starlette/routing.py", line 736, in app await route.handle(scope, receive, send) │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7ff6dc247b00> │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd... │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c... │ └ <function Route.handle at 0x7ff82bab8400> └ APIRoute(path='/file_parse', name='parse_pdf', methods=['POST']) File "/usr/local/lib/python3.12/dist-packages/starlette/routing.py", line 290, in handle await self.app(scope, receive, send) │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7ff6dc247b00> │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd... │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c... │ └ <function request_response.<locals>.app at 0x7ff6dcd6d300> └ APIRoute(path='/file_parse', name='parse_pdf', methods=['POST']) File "/usr/local/lib/python3.12/dist-packages/starlette/routing.py", line 78, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) │ │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7ff6dc247b00> │ │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd... │ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c... │ │ └ <starlette.requests.Request object at 0x7ff6dcdcbf50> │ └ <function request_response.<locals>.app.<locals>.app at 0x7ff6dc247740> └ <function wrap_app_handling_exceptions at 0x7ff82ba7ef20> File "/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7ff6dc247f60> │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7ff6dcd... │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.19.0.5', 8000), 'c... └ <function request_response.<locals>.app.<locals>.app at 0x7ff6dc247740> File "/usr/local/lib/python3.12/dist-packages/starlette/routing.py", line 75, in app response = await f(request) │ └ <starlette.requests.Request object at 0x7ff6dcdcbf50> └ <function get_request_handler.<locals>.app at 0x7ff6dcd6d440> File "/usr/local/lib/python3.12/dist-packages/fastapi/routing.py", line 302, in app raw_response = await run_endpoint_function( └ <function run_endpoint_function at 0x7ff82ba7eac0> File "/usr/local/lib/python3.12/dist-packages/fastapi/routing.py", line 213, in run_endpoint_function return await dependant.call(**values) │ │ └ {'files': [UploadFile(filename='CIO_Leadership_Cult_736568_ndx.pdf', size=326961, headers=Headers({'content-disposition': 'fo... │ └ <function parse_pdf at 0x7ff6dcd6d080> └ Dependant(path_params=[], query_params=[], header_params=[], cookie_params=[], body_params=[ModelField(field_info=File(Pydant... > File "/usr/local/lib/python3.12/dist-packages/mineru/cli/fast_api.py", line 131, in parse_pdf await aio_do_parse( └ <function aio_do_parse at 0x7ff6dcd6c680> TypeError: mineru.cli.common.aio_do_parse() got multiple values for keyword argument 'backend' ```
yindo added the bug label 2026-02-16 10:20:21 -05:00
yindo closed this issue 2026-02-16 10:20:21 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Nov 8, 2025):

Hi, @928871247. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You reported a TypeError in the langgenius/mineru plugin (v0.5.0) on Dify 1.9.1 (self-hosted via Docker).
  • The error occurs in mineru.cli.common.aio_do_parse() due to "multiple values for keyword argument 'backend'".
  • The issue involves a conflict in keyword arguments during file parsing in the mineru CLI.
  • No additional comments or updates have been provided since the initial report.

Next Steps:

  • Please let me know if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here.
  • If I do not hear back within 5 days, this issue will be automatically closed.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Nov 8, 2025): Hi, @928871247. I'm [Dosu](https://dosu.dev), and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale. **Issue Summary:** - You reported a TypeError in the langgenius/mineru plugin (v0.5.0) on Dify 1.9.1 (self-hosted via Docker). - The error occurs in mineru.cli.common.aio_do_parse() due to "multiple values for keyword argument 'backend'". - The issue involves a conflict in keyword arguments during file parsing in the mineru CLI. - No additional comments or updates have been provided since the initial report. **Next Steps:** - Please let me know if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here. - If I do not hear back within 5 days, this issue will be automatically closed. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#743