Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Include the OCS API errors in the error logs printed and reported to nextcloud

未关闭
#254 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@cestercian 已经在做这个了。

开始于 2026年10月5日。

  • #255 来自 @cestercian —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
25/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
python

调研方向

Read the failure handling around the LLM task schedule call in ex_app/lib/main.py and the example in ex_app/lib/ocp_translator.py; the issue points to NextcloudException.response.text as the response text source. Check open pull request #255 before starting, since work is already underway. Done means OCS API response errors are included in the relevant error logs reported to Nextcloud.

由索引模型根据 Issue 内容生成。

描述

enhancement good first issue priority normal
How to use GitHub
  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Feature request

This affects only when ocs requests are made to the home Nextcloud instance and a NextcloudException is thrown. The response text can be fetched with e.response.text from the exception e, see: https://github.com/cloud-py-api/nc_py_api/blob/37f8cf7e11758fb18652610c1c72e5b5005c7d73/nc_py_api/_exceptions.py#L12

One place this could be implemented is where a LLM task schedule call fails with say 412 and we'd want to know the error message returned in there: https://github.com/nextcloud/context_agent/blob/33d170f71ac7884286c17761a13f4275975138c9/ex_app/lib/main.py#L268

Example usage in an ex-app: https://github.com/nextcloud/live_transcription/blob/d8b3f31085cf6543ebddb6a4a5b4396fd5b0eb2a/ex_app/lib/ocp_translator.py#L148

主要语言
Python
星标
26
派生
18
平均合并
2 天 1 小时
30 天内合并 PR
5

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextcloud/context_agent 的其他 Issue

查看 nextcloud/context_agent 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。