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

Streamline server error deserialization when using graph core SDKs

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

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
csharp

调研方向

首先阅读链接的 ErrorContent.md 指南以及其中引用的 ServiceException.cs 实现。比较 Java、PHP 和 Python 目前如何为 Page Iterator、Large File Upload 和 Batch 请求公开 Graph 错误 payload。项目就自定义映射或标准 Core SDK 异常形成一致且经过约定的描述方案后,即视为完成。

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

描述

type:enhancement

We currently provide different experiences across languages to handle error payloads from Graph when using only the Core SDK.
This is apparent when working with tasks (Page Iterator, Large File Upload) and Batch requests making it difficult for developers to understand the cause of failed requests.

e.g.
.NET Core SDK provides a ServiceException which stores the error payload as a string property for LFU

Java, PHP & Python currently don't expose/deserialize the error payload out of the box

We could agree to:

  • allow passing custom error mappings with the option of adding convenience methods on the GraphServiceClient to create tasks while passing the generated error models under the hood.
  • provide a standard Exception type for the Core SDK that we default to when no custom error mappings are present.

Previous guidance around this, worth referencing. https://github.com/microsoftgraph/msgraph-sdk-design/blob/master/content/ErrorContent.md

主要语言
C#
星标
163
派生
66
平均合并
1 天 18 小时
30 天内合并 PR
8

环境准备

从这里开始

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

microsoftgraph/msgraph-sdk-dotnet-core 的其他 Issue

查看 microsoftgraph/msgraph-sdk-dotnet-core 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

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