dosubot[bot]
dosubot[bot]
你说得对,官方文档确实没有详细说明 Docker 下如何自动进入 Web API 模式,也没有写清楚防止容器自动退出的具体方法,这部分内容目前只在社区讨论和 issue 里有说明(比如 [#554](https://github.com/JoeanAmier/TikTokDownloader/issues/554))。 实际操作建议如下: 1. 在 settings.json 顶层加上 `"run_command": "8"`,这样程序会自动尝试进入 Web API 模式。 2. Docker 启动时必须加 `-it` 参数(即 `docker run -it ...`),否则 `run_command` 会被忽略,程序还是会停在交互界面,容器自动退出。...
你的 docker-compose 配置和 settings.json 理论上可以自动进入 Web API 模式,但 API 没有启动,常见原因有: 1. **cookie 配置缺失或格式错误** settings.json 里的 `cookie` 和 `cookie_tiktok` 必须填写为浏览器完整登录 Cookie,否则部分功能不可用,甚至主程序直接退出(见[源码说明](https://github.com/JoeanAmier/TikTokDownloader/blob/af567ab163187bfa8b13eecb7f2700a6993bdc84/src/config/parameter.py))。只要 cookie 字段为空或格式不对,启动日志会有警告,并可能自动关闭程序。 2. **端口映射问题** API 默认监听 `0.0.0.0:5555`,你映射到主机的 86 端口(`"86:5555"`),确认主机 86...
你的 Docker Compose 配置和 settings.json 理论上可以自动进入 Web API 模式,但根据代码和文档,API 服务应该会绑定到 `0.0.0.0:5555`,只要容器没报错,其他容器就能访问 [`http://douyin:5555/docs`](https://github.com/JoeanAmier/TikTokDownloader/blob/master/src/custom/static.py)。 你看到的“参数更新完毕”只是初始化日志,API 服务启动后应该还能看到 `/docs` 相关提示。如果没有,说明主进程可能没进入 API 启动阶段或异常退出。 常见原因和排查建议: 1. **容器日志**:请用 `docker logs douyin` 查看完整日志,确认是否有异常或 traceback。API 启动失败会有明显报错(比如端口冲突、依赖缺失等)[源码参考](https://github.com/JoeanAmier/TikTokDownloader/blob/master/src/application/main_server.py)。 2. **settings.json**:`run_command` 必须是顶层参数,不能嵌套,且必须为...
你的判断是对的:服务管理面板显示容器内部端口未打开,说明 Web API 没有启动。根据项目代码和社区讨论,这通常是因为主程序没有进入 Web API 模式,或者启动过程中异常退出。 最常见原因是 Docker 环境下 TTY 分配不正确,导致 `run_command` 参数被忽略,程序卡在交互界面或直接退出(即使 docker-compose 配置了 `stdin_open: true` 和 `tty: true`,某些环境下还是可能不生效)。参考[社区讨论 #554](https://github.com/JoeanAmier/TikTokDownloader/issues/554): - TikTokDownloader 的自动模式(`run_command`)依赖于有 TTY,Docker 没有分配 TTY 时会直接跳过自动化,主进程不会进入 Web...
I couldn't find any specific threads addressing the "tool parameter url not found in tool config" error. However, there is a similar closed issue regarding tool configuration errors. The suggested...
The discrepancy between the uploaded file name and the name in the knowledge base could be due to caching mechanisms. The `ApolloClient` class uses both a local cache and a...
It seems that the issue might be related to the synchronization between the knowledge base and the `upload_files` table in the database. If the file names in the database are...
To retrieve the document name using the `upload_file_id`, you would typically need to query the database where the `upload_files` table is stored. This table should have a relationship with the...
Hey there, @hzho2000! I'm here to help you with any bugs, questions, or contributions you have in mind. Let's tackle this issue together! The increased API call time you're experiencing...
@hiroppelx Hello there! I'm here to help you with bug reports, answer questions, and support you while waiting for a human maintainer. Let me know how I can assist you!...